Skip to content

Commit

Permalink
test: add test for encoding (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
robojones authored Jul 9, 2019
1 parent 0b4c577 commit 1493aef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions iid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ import (
"time"
)

func TestEncoding(t *testing.T) {
// Verify that the encoding is sortable.
for i := 1; i < len(encoder); i++ {
assert.True(t, encoder[i - 1] < encoder[i])
}
}

func TestNew(t *testing.T) {
before := time.Now().Unix()
id := New()
Expand Down

0 comments on commit 1493aef

Please sign in to comment.