Skip to content

Commit

Permalink
test: update wordlist test
Browse files Browse the repository at this point in the history
  • Loading branch information
nohehf committed Mar 15, 2023
1 parent 3f93910 commit 5042646
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/utils/wordlist_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package utils

import (
"fmt"
"testing"
)

Expand All @@ -10,11 +9,10 @@ func TestLoadDefaultWordlist(t *testing.T) {
if len(*list) == 0 {
t.Error("Wordlist is empty")
}
if (*list)[0] != "the" {
t.Error("First word in wordlist is not 'the'")
if (*list)[0] != "user" {
t.Error("First word in wordlist is not 'user'")
}
if (*list)[len(*list)-1] == "" {
t.Error("Last word in wordlist is empty")
}
fmt.Printf("Last word in wordlist: %s", (*list)[len(*list)-1])
}

0 comments on commit 5042646

Please sign in to comment.