1
0
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:
Bill 2018-06-07 15:27:56 -07:00
parent ef489831a9
commit 4fb52856c7
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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)
}
}