Advertisement
Guest User

Untitled

a guest
Oct 16th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. (check-expect (proper-train? (cons (make-unit 'L 2) (cons (make-unit 'C 3) empty))) true)
  3. (check-expect (proper-train? (cons (make-unit 'L 4) (cons (make-unit 'L 2) (cons (make-unit 'C 3) empty)))) true)
  4. (check-expect (proper-train? (cons (make-unit 'B 4) (cons (make-unit 'L 2) (cons (make-unit 'C 3) empty)))) false)
  5. (check-expect (proper-train? (cons (make-unit 'B 4) (cons (make-unit 'T 2) (cons (make-unit 'P 3) empty)))) true)
  6. (check-expect (proper-train? (cons (make-unit 'C 3) (cons (make-unit 'C 4) empty))) true)
  7. (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