Skip to content

Commit f69e071

Browse files
committed
added tests for mig/2, refs #7
1 parent 362f62f commit f69e071

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
@@ -133,6 +133,15 @@
133133
Mag == 2.
134134

135135
% mig/2 tests
136+
test(interval_arithmetic_mig_2_01, deterministic) :-
137+
new(-3, 2, X),
138+
mig(X, Mig),
139+
Mig == 2.
140+
141+
test(interval_arithmetic_mig_2_02, fail) :-
142+
new(-3, 2, X),
143+
mig(X, Mig),
144+
Mig == 3.
136145

137146
% intersection/3 tests
138147
test(interval_arithmetic_intersection_03_01, deterministic) :-

0 commit comments

Comments
 (0)