Skip to content

Commit 57da251

Browse files
committed
added tests for abs/2, refs #7
1 parent d54649b commit 57da251

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests.lgt

+9
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,14 @@
119119
Wid == 1.
120120

121121
% abs/2 tests
122+
test(interval_arithmetic_abs_2_01, deterministic) :-
123+
new(-3, 2, X),
124+
abs(X, Abs),
125+
Abs == 3.
126+
127+
test(interval_arithmetic_abs_2_02, fail) :-
128+
new(-3, 2, X),
129+
abs(X, Abs),
130+
Abs == 2.
122131

123132
:- end_object.

0 commit comments

Comments
 (0)