diff options
author | EuAndreh <eu@euandre.org> | 2024-09-28 06:23:46 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-09-28 06:23:46 -0300 |
commit | 0739cb4590b6eaf33fdd9a4e5946914845a6729d (patch) | |
tree | 9c7c6913c0964689459885dabbe58087351a3b7d /tests | |
parent | Makefile: "var version" -> "const Version" (diff) | |
download | uuid-0739cb4590b6eaf33fdd9a4e5946914845a6729d.tar.gz uuid-0739cb4590b6eaf33fdd9a4e5946914845a6729d.tar.xz |
src/guuid.go: Rename XxxError to ErrXxx
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guuid.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/guuid.go b/tests/guuid.go index ca20b49..c351bba 100644 --- a/tests/guuid.go +++ b/tests/guuid.go @@ -236,13 +236,13 @@ func test_FromString() { var err error _, err = FromString("") - assertEq(err, BadLengthError) + assertEq(err, ErrBadLength) _, err = FromString("---000000000000000000000000000000000") - assertEq(err, BadDashCountError) + assertEq(err, ErrBadDashCount) _, err = FromString("----00000000000000000000000000000000") - assertEq(err, BadDashPositionError) + assertEq(err, ErrBadDashPosition) _, err = FromString("00000000-0000-0000-0000-00000000000g") assertEq(err, hex.InvalidByteError('g')) @@ -253,6 +253,7 @@ func test_FromString() { } + func MainTest() { test_NewFrom() test_New() |