Skip to content

Commit a66d13e

Browse files
committed
fixed mag tests, refs #7
1 parent 84f100f commit a66d13e

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

tests.lgt

+10-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
div/3,
1212
mid/2,
1313
wid/2,
14-
abs/2
14+
mag/2,
15+
mig/2,
16+
intersection/3,
17+
hull/3
1518
]).
1619

1720
cover(interval_arithmetic).
@@ -119,14 +122,14 @@
119122
Wid == 1.
120123

121124
% abs/2 tests
122-
test(interval_arithmetic_abs_2_01, deterministic) :-
125+
test(interval_arithmetic_mag_2_01, deterministic) :-
123126
new(-3, 2, X),
124-
abs(X, Abs),
125-
Abs == 3.
127+
abs(X, Mag),
128+
Mag == 3.
126129

127-
test(interval_arithmetic_abs_2_02, fail) :-
130+
test(interval_arithmetic_mag_2_02, fail) :-
128131
new(-3, 2, X),
129-
abs(X, Abs),
130-
Abs == 2.
132+
abs(X, Mag),
133+
Mag == 2.
131134

132135
:- end_object.

0 commit comments

Comments
 (0)