Merge pull request #565 from stevvooe/uuid-testcase
Remove trailing spaces from range check on UUID parser
This commit is contained in:
commit
1f015478a0
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