[mercury-users] Exception file......
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Oct 16 23:20:35 AEST 2002
On 16-Oct-2002, Noel Pinto <cool4life at rediffmail.com> wrote:
>
> >There are some example uses of most of the exception handling
> >routines
> >in the files in the directory hard_coded/exceptions in the
> >Mercury test
> >suite (the mercury-tests distribution).
>
> There are two types of files, I mean they have '.m' and '.exp'
> extensions. When I compile '.m' files with or without '.exp' files
> in the same folder, the output is the same. What is the use of
> '.exp' files??
As it says in tests/README:
| Unless otherwise stated, the tests in each directory compile
| the test programs and compare their output against hand-coded
| `.exp' (or `.exp2', `.exp3', etc) files.
In other words, the ".exp" files each contain the expected output
for their corresponding test case.
> >There are some example uses of try_io in the sources for the
> >Mercury compiler.
> >Just grep for it.
> >
> >That is, use the Unix (and cygwin) command `grep', e.g.
> > grep -n try_io compiler/*.m
> This command does not work for me. It gives me the following
> error...
> grep: compiler/*.m: No such file or directory
You need to be in the right directory before you execute this command.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list