Skip to content

Commit

Permalink
Merge pull request #4 from intelligentpos/refactor/ECO-15
Browse files Browse the repository at this point in the history
fixed issues
  • Loading branch information
alistairjudson authored Jun 1, 2017
2 parents edc98a3 + d7aaf8c commit 357b1a2
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 357b1a2

Please sign in to comment.