mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
added basic testing for travis
fixed utils_test, had wrong print format
This commit is contained in:
parent
ef489831a9
commit
4fb52856c7
@ -8,3 +8,5 @@ before_install:
|
||||
- test ! -d $GOPATH/src/github.com/senorprogrammer/wtf && mv $TRAVIS_BUILD_DIR $GOPATH/src/github.com/senorprogrammer/wtf || true
|
||||
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/senorprogrammer/wtf
|
||||
- cd $HOME/gopath/src/github.com/senorprogrammer/wtf
|
||||
|
||||
script: go get ./... && go get github.com/go-test/deep && go test -v github.com/senorprogrammer/wtf/wtf_tests
|
||||
|
@ -74,7 +74,7 @@ func TestToInts(t *testing.T) {
|
||||
actual := ToInts(source)
|
||||
|
||||
if diff := deep.Equal(expected, actual); diff != nil {
|
||||
t.Fatalf("Expected %s but got %s", expected, actual)
|
||||
t.Fatalf("Expected %v but got %v", expected, actual)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user