Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (check-expect (proper-train? (cons (make-unit 'L 2) (cons (make-unit 'C 3) empty))) true)
- (check-expect (proper-train? (cons (make-unit 'L 4) (cons (make-unit 'L 2) (cons (make-unit 'C 3) empty)))) true)
- (check-expect (proper-train? (cons (make-unit 'B 4) (cons (make-unit 'L 2) (cons (make-unit 'C 3) empty)))) false)
- (check-expect (proper-train? (cons (make-unit 'B 4) (cons (make-unit 'T 2) (cons (make-unit 'P 3) empty)))) true)
- (check-expect (proper-train? (cons (make-unit 'C 3) (cons (make-unit 'C 4) empty))) true)
- (check-expect (proper-train? (cons (make-unit 'C 3) (cons (make-unit 'L 4) empty))) false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement