Remove trailing spaces from range check on UUID parser
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
a3006e8e45
commit
f1c0f011f8
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ func TestParseAndEquality(t *testing.T) {
|
||||||
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", // correct length, incorrect format
|
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", // correct length, incorrect format
|
||||||
" 20cc7775-2671-43c7-8742-51d1cfa23258", // leading space
|
" 20cc7775-2671-43c7-8742-51d1cfa23258", // leading space
|
||||||
"20cc7775-2671-43c7-8742-51d1cfa23258 ", // trailing space
|
"20cc7775-2671-43c7-8742-51d1cfa23258 ", // trailing space
|
||||||
"00000000-0000-0000-0000-x00000000000 ", // out of range character
|
"00000000-0000-0000-0000-x00000000000", // out of range character
|
||||||
} {
|
} {
|
||||||
if _, err := Parse(c); err == nil {
|
if _, err := Parse(c); err == nil {
|
||||||
t.Fatalf("parsing %q should have failed", c)
|
t.Fatalf("parsing %q should have failed", c)
|
||||||
|
|
Loading…
Reference in a new issue