From dc88ddeb9e9c529dc03c58270ad6152ecb5bc5f4 Mon Sep 17 00:00:00 2001 From: adragusin Date: Tue, 25 Feb 2020 09:48:18 +0200 Subject: [PATCH] Fixed TestRandomInteger test --- utils/coreutils_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/coreutils_test.go b/utils/coreutils_test.go index 7974b2d2e..b04e5c3d9 100644 --- a/utils/coreutils_test.go +++ b/utils/coreutils_test.go @@ -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") } }