fix issue in unit test case og grand

This commit is contained in:
John
2019-09-23 23:24:36 +08:00
parent 03ff358da8
commit a876b6133d
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ before_script:
- psql -c 'create database travis_ci_test;' -U postgres
script:
#- GOARCH=386 go test -v ./... || exit 1
- GOARCH=386 go test -v ./... || exit 1
- GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
after_success:

View File

@ -25,7 +25,7 @@ func Test_Intn(t *testing.T) {
for i := 0; i < 1000000; i++ {
n := grand.Intn(-100)
gtest.AssertLE(n, 0)
gtest.AssertGT(n, -100)
gtest.Assert(n, -100)
}
})
}