[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with trailing comment in repl

From: Noah Lavine
Subject: Re: problem with trailing comment in repl
Date: Mon, 14 Feb 2011 21:42:15 -0500


> 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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]