Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Mar 11, 2024
1 parent aac4707 commit a7c0949
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions samples/fib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
R is R1 + R2.

test :-
fib(10,F),
F =:= 89,
write('fib(30)='), write(F), write(' PASSED'), nl.

test0 :-
fib(30,F),
F =:= 1346269,
write('fib(30)='), write(F), write(' PASSED'), nl.
Expand Down
5 changes: 5 additions & 0 deletions samples/fib_fast.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
fib(E,C,F,D).

test :-
fib(10,F),
F =:= 89,
write('fib(30)='), write(F), write(' PASSED'), nl.

test0 :-
fib(30,F),
F =:= 1346269,
write('fib(30)='), write(F), write(' PASSED'), nl.
Expand Down
2 changes: 1 addition & 1 deletion samples/fib_tabled.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
test :-
fib(10,F),
F =:= 89,
write('fib(30)='), write(F), write(' PASSED'), nl.
write('fib(10)='), write(F), write(' PASSED'), nl.

test0 :-
fib(30,F),
Expand Down

0 comments on commit a7c0949

Please sign in to comment.