Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ruby doctest

4 views
Skip to first unread message

Paddy

unread,
Jun 22, 2008, 4:53:13 AM6/22/08
to
I monitor changes to the Wikipedia doctest page, and so noticed a
change in the Ruby implementation of doctest.

Scooting around their implementation I found that they have an !!!
special directive that says drop into the interpreter at this point
when testing allowing debugging in context.
http://github.com/tablatom/rubydoctest/wikis/special-directives

- Paddy.

Duncan Booth

unread,
Jun 23, 2008, 3:27:40 AM6/23/08
to
Paddy <padd...@googlemail.com> wrote:

Whereas Python has the more wordy version which works anywhere in ordinary
code or in doctests:

>>> import pdb; pdb.set_trace()


--
Duncan Booth http://kupuguy.blogspot.com

0 new messages