(load "/home/rebelsky/Web/Courses/CS151/2006F/Examples/unit-test.ss") (load "tally.ss") (begin-tests!) (test! (tally 5 null) 0) (test! (tally 5 (list 5)) 1) (test! (tally 5 (list 17)) 0) (test! (tally 5 (list 5 17 6)) 1) (test! (tally 5 (list 17 5 6)) 1) (test! (tally 5 (list 6 17 5)) 1) (test! (tally 5 (list 5 5 5 5 5)) 5) (test! (tally 5 (list 5 17 5 17 5)) 3) (test! (tally 5 (list 17 5 5 17 17)) 2) (test! (tally 5 (list 17 17 17 17 17)) 0) (test! (tally 'a (list 'a 'a 'a)) 3) (test! (tally #\a (string->list "alphabet")) 2) (test! (tally "hello" (list "hello" "goodbye" "and" "hello")) 2) (test! (tally null (list null "null" 'null)) 1) (end-tests!)