Skip to content

Commit

Permalink
Fixed file extension test to handle extensions with one letter
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Schweder <jonathanschweder@gmail.com>
  • Loading branch information
jaswdr committed Oct 10, 2020
1 parent c9bbf0f commit 1fa8ba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions faker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package faker
import (
"fmt"
"math/rand"
"reflect"
"strings"
"testing"
"reflect"
)

func Expect(t *testing.T, expected, got interface{}, values ...interface{}) {
Expand Down Expand Up @@ -191,4 +191,4 @@ func TestBoolWithChance(t *testing.T) {
Expect(t, false, f.BoolWithChance(0))
Expect(t, true, f.BoolWithChance(101))
Expect(t, false, f.BoolWithChance(-1))
}
}
2 changes: 1 addition & 1 deletion file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func TestExtension(t *testing.T) {
p := New().File()
Expect(t, true, len(p.Extension()) > 2)
Expect(t, true, p.Extension() != "")
}

func TestFileWithExtension(t *testing.T) {
Expand Down

0 comments on commit 1fa8ba6

Please sign in to comment.