Skip to content

Commit

Permalink
fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairjudson committed Jun 1, 2017
1 parent 0b8f35c commit d7aaf8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tokengen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ func TestTokengen_GenerateTokenMultipleLengths(t *testing.T) {
1,
}
for _, expected := range testCases {
t.Run(fmt.Sprintf(`Lenght: %v`, expected), func(t *testing.T) {
t.Run(fmt.Sprintf(`Length: %v`, expected), func(t *testing.T) {
tg, err := New(DefaultCharset, expected)
if err != nil {
t.Fatal(err)
}
token, err := tg.GenerateToken()
if err != nil {
t.Fatal(err)
}
if actual := len(token); actual != expected {
t.Fatalf("Expected length of %v got %v for tokengen of %v", expected, actual, tg)
}
Expand Down

0 comments on commit d7aaf8c

Please sign in to comment.