Back Edit Delete

A function named cheap? should produce true when a price is strictly less than 100. Write three check-expect tests that test the boundary: one value below 100, exactly 100, and one value above 100.

Short answer

Accepted answer

(check-expect (cheap? 99) true)
(check-expect (cheap? 100) false)
(check-expect (cheap? 101) false)