By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,441 Members | 1,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,441 IT Pros & Developers. It's quick & easy.

Extending doctest

P: n/a
One of my current tests looks like this (the program is an
interpreter for a scheme-like language):
>>result = parse_op('(with (b (newbox 5))'
... ' (seqn (setbox b 1)'
... ' (setbox b 2)'
... ' (setbox b 3)'
... ' b))').interp(EmptyEnv(), EmptyStore())
>>result #doctest: +ELLIPSIS
(<Box ...>, ~...: <Num 3~)
>>result[0].location == result[1].location
True

The memrory location that the box refers to must match the actual
location in storage. Currently, the doctest stinks because it
depends on internal details of my implementation.

Is there a doctest feature that will allow me to stipulate that
one thing in a result is arbitrary, but identical to another
thing in that result?

--
Neil Cerutti
Trespassers will be prosecuted to the full extent of the law --sign at Sisters
of Mercy Nunnery
Aug 1 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.