Skip to content

Commit a58765e

Browse files
committed
added tests for mul/3, refs #7
1 parent ab9dfd4 commit a58765e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests.lgt

+10
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@
6666
Sub == [5, 6].
6767

6868
% mul/3 tests
69+
test(interval_arthmetic_mul_3_01, deterministic) :-
70+
new(1, 2, X),
71+
new(3, 4, Y),
72+
mul(X, Y, Mul),
73+
Mul == [3, 8].
74+
75+
test(interval_arithmetic_mul_3_02, fail) :-
76+
new(1, 2, X),
77+
new(3, 4, Y),
78+
Mul == [1, 4].
6979

7080
% div/3 tests
7181

0 commit comments

Comments
 (0)