diff options
Diffstat (limited to '')
-rw-r--r-- | tests/guuid.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/guuid.go b/tests/guuid.go index 6470fca..ca20b49 100644 --- a/tests/guuid.go +++ b/tests/guuid.go @@ -167,6 +167,20 @@ func test_New() { }) } +func test_NewBytes() { + testStart("NewBytes()") + + testing("the slice has the same length of the original array", func() { + array := New() + slice := NewBytes() + assertEq(len(slice), len(array)) + }) + + testing("we get the correct byte count", func() { + assertEq(len(NewBytes()), UUIDByteCount) + }) +} + func test_String() { testStart("UUID.String()") @@ -242,6 +256,7 @@ func test_FromString() { func MainTest() { test_NewFrom() test_New() + test_NewBytes() test_String() test_FromString() } |