unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* unit-test: How?
@ 2010-12-14 19:54 Marek Kubica
  2010-12-15 10:28 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Kubica @ 2010-12-14 19:54 UTC (permalink / raw)
  To: guile-user

Hi,

After getting so many useful answers here, my next question :)

I am pretty new to GOOPS and the CLOS, so I suppose I am missing
something, but I've tried the unit-test module from guile-lib (in Guile
1.9.13) but I am unable to add test-cases to the test-suite:

I've tried something like this, but while the test runner runs just
fine, the test does not seem to get executed and never fails.

(use-module (unit-test))

(define-method (test-started (self <test-case>))
  (run (test self) (test-result self))
  (assert-equal 1 2))

(run-all-defined-test-cases)

What do I need to do? I tried the examples on
http://article.gmane.org/gmane.lisp.guile.user/1728 but it does not
seem to be fully compatible.

regards,
Marek



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unit-test: How?
  2010-12-14 19:54 unit-test: How? Marek Kubica
@ 2010-12-15 10:28 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2010-12-15 10:28 UTC (permalink / raw)
  To: guile-user

Hi,

I’d recommend using SRFI-64
(<http://srfi.schemers.org/srfi-64/srfi-64.html>), which has a more
Schemey (GOOPS-less) interface.

It has yet to be added to Guile core, though...

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-15 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-14 19:54 unit-test: How? Marek Kubica
2010-12-15 10:28 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).