Re: Testing Prolog

3 views
Skip to first unread message

Jay McCarthy

unread,
Dec 6, 2012, 10:33:03 AM12/6/12
to Andrew Hurd, BYU CS 330 Fall 2012
You should use the stuff under "interactive testing"

For example, you could do:

(show () =fail)

and if it immediately prints

'fail

Then you did it correct.

You can then test how many successes you get by typing

(next)

Some number of times

Eventually once you make =find-some, it is best to use test-prolog.

Jay


On Thu, Dec 6, 2012 at 8:30 AM, Andrew Hurd <andre...@gmail.com> wrote:
> Any general advice on testing prolog?



--
Jay McCarthy <j...@cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93
Reply all
Reply to author
Forward
0 new messages