From: mgushee@havenrock.com
To: caml-list@pauillac.inria.fr
Subject: [Caml-list] OUnit usage
Date: Thu, 20 Feb 2003 21:00:21 -0700 [thread overview]
Message-ID: <3E5541E5.15804.8F7F3E@localhost> (raw)
Hello, all--
This probably qualifies as a dumb question, but I hope you will indulge my curiosity.
I would like to try OUnit. I haven't done much formal unit testing, and am also fairly
new to OCaml, but since I want to develop a serious software package I guess it's
time to get serious about testing. Anyway, I am having a little trouble understanding
how to construct a test. The main point of confusion is the TestCase constructor.
The OUnit docs say:
type test =
| TestCase of (unit -> unit)
| TestList of test list
| TestLabel of string * test
I would like to know what sort of arguments to give TestCase. The examples
provided don't mean much to me:
TestCase (fun _ -> ())
This looks like syntactically correct but meaningless code, no?
If I could see 1 or 2 simple but realistic examples, I think that would clear up the
mystery.
All suggestions appreciated.
--
Matt Gushee
Englewood, CO USA
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next reply other threads:[~2003-02-21 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-21 4:00 mgushee [this message]
2003-02-21 8:24 ` Maas-Maarten Zeeman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E5541E5.15804.8F7F3E@localhost \
--to=mgushee@havenrock.com \
--cc=caml-list@pauillac.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox