gtr123

Untitled

Mar 7th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. (define test
  2. (lambda (filename expected-output)
  3. (if (eq? (interpret filename) expected-output)
  4. (string-append "Passed " filename)
  5. (string-append "Failed " filename
  6. ", ! Expected output: " (if (number? expected-output) (number->string expected-output) (symbol->string expected-output))
  7. ", Interpreter output: " (if (number? (interpret filename)) (number->string (interpret filename)) (symbol->string (interpret filename)))))))
Advertisement
Add Comment
Please, Sign In to add comment