Skip to content

Commit

Permalink
Added test to garanted that two UUIDV4 are not generated in sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswdr committed Aug 10, 2018
1 parent be7f978 commit 5a81f8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions uuid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ func TestUUIDv4(t *testing.T) {
Expect(t, true, err == nil)
Expect(t, true, match)
}

func TestUUIDV4UniqueInSequence(t *testing.T) {
f := New()
last := f.UUID().V4()
current := f.UUID().V4()
Expect(t, true, last != current)
}

0 comments on commit 5a81f8c

Please sign in to comment.