Google Gruplar, artık yeni Usenet gönderilerini veya aboneliklerini desteklememektedir. Geçmişteki içerikler görüntülenebilir kalmaya devam edecek.

Ruby doctest

4 görüntüleme
İlk okunmamış mesaja atla

Paddy

okunmadı,
22 Haz 2008 04:53:1322.06.2008
alıcı
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

okunmadı,
23 Haz 2008 03:27:4023.06.2008
alıcı
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 yeni ileti