diff --git a/random_test.go b/random_test.go index caa5e58..e69b4e7 100644 --- a/random_test.go +++ b/random_test.go @@ -62,3 +62,10 @@ func TestRandomNum(t *testing.T) { }) } } + +func TestRandomNumZero(t *testing.T) { + rn := randNum(0) + if rn != 0 { + t.Errorf("random number generation failed: %d is not zero", rn) + } +}