-
Notifications
You must be signed in to change notification settings - Fork 221
Language Prolog
kazk edited this page Jan 5, 2020
·
4 revisions
Unreleased
SWI Prolog v8.0
plunit
can be used normally.
add_1(X,Y) :- Y is X+1.
:- begin_tests(solution).
:- include(solution).
test(add_1) :-
add_1(1, X),
assertion(X == 2).
:- end_tests(solution).
The name of the solution module is inferred from the test file using the line :- begin_tests(example).
.
Optional preloaded code is written to preloaded.pl
.
12 seconds
None
None