Open nlfiedler opened 11 years ago
Scheme provides several procedures that would make this easily testable. Starting with (get-output-string) which retrieves the contents of the port created with (open-output-string), and (parameterize) which is used to temporarily change the definition of (current-output-port). See the R7RS for an example using (get-output-string).
For testing the results of evaluation, can assign "stdout" in the global environment to a bytes.Buffer then read the contents of that to see what the s-expr yielded.