Hello,

> Nice!  Can you add a test case?

I've thought about it, and I'm not sure how to do it well. The trouble
is that this only applies to the REPL, not scripts. So a test would
have to wrap the REPL in something and make sure its output is right.

I might be able to do that, but if I just compared the output to the
string I expected, the test would fail if the output format changed at
all, which seems excessively fragile to me. And I'm not sure how to
test it otherwise, because the REPL catches exceptions, so I can't
just run the REPL and see if it throws one.

Could someone help me?

Thanks,
Noah

Reply via email to