Skip to content

Commit 33d8aaf

Browse files
committed
added tests for is_in predicate, refs #7
1 parent c009f6f commit 33d8aaf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests.lgt

+11
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@
2727
new(3, 1, _).
2828

2929
% is_in/2 tests
30+
test(interval_arithmetic_is_in_2_01, deterministic) :-
31+
new(1, 3, X),
32+
is_in(X, 2).
33+
34+
test(interval_arithmetic_is_in_2_02, fail) :-
35+
new(1, 3, X),
36+
is_in(X, 0).
37+
38+
test(interval_arithmetic_is_in_02_03, fail) :-
39+
new(1, 3, X),
40+
is_in(X, 4).
3041

3142
% add/3 tests
3243

0 commit comments

Comments
 (0)