Fixed TestRandomInteger test

This commit is contained in:
adragusin
2020-02-25 09:48:18 +02:00
committed by Dan Christian Bogos
parent 28abb7e16e
commit dc88ddeb9e

View File

@@ -1304,7 +1304,10 @@ func TestRandomInteger(t *testing.T) {
if a == b && b == c {
t.Errorf("same result over 3 attempts")
}
if a == 100 || b == 100 || c == 100 {
t.Errorf("one of the numbers equals the max limit")
if a >= 100 || b >= 100 || c >= 100 {
t.Errorf("one of the numbers equals the (/are above) max limit")
}
if a < 0 || b < 0 || c < 0 {
t.Errorf("one of the numbers are below min limit")
}
}