From 0739cb4590b6eaf33fdd9a4e5946914845a6729d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 28 Sep 2024 06:23:46 -0300 Subject: src/guuid.go: Rename XxxError to ErrXxx --- tests/guuid.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/guuid.go') 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() -- cgit v1.2.3