Merge pull request #565 from stevvooe/uuid-testcase

Remove trailing spaces from range check on UUID parser
This commit is contained in:
Derek McGowan 2015-05-26 11:49:36 -07:00
commit 1f015478a0

View File

@ -39,7 +39,7 @@ func TestParseAndEquality(t *testing.T) {
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", // correct length, incorrect format
" 20cc7775-2671-43c7-8742-51d1cfa23258", // leading 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 {
t.Fatalf("parsing %q should have failed", c)