I’d write:
assertTrue("mynum is out of range: " + mynum, min <= mynum && mynum <= max);
but technically you just need:
assertTrue(min <= mynum && mynum <= max);
Either way, be sure to write &&
and not and
.
I’d write:
assertTrue("mynum is out of range: " + mynum, min <= mynum && mynum <= max);
but technically you just need:
assertTrue(min <= mynum && mynum <= max);
Either way, be sure to write &&
and not and
.