summaryrefslogtreecommitdiff
path: root/tests/guuid.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/guuid.go')
-rw-r--r--tests/guuid.go7
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()