Wrote assertInRange