mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fixed TestRandomInteger test
This commit is contained in:
committed by
Dan Christian Bogos
parent
0e79bb0d11
commit
25cd02e126
@@ -1304,11 +1304,11 @@ 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 equals the min limit")
|
||||
if a < 0 || b < 0 || c < 0 {
|
||||
t.Errorf("one of the numbers are below min limit")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user