We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a11fa55 commit bd69abeCopy full SHA for bd69abe
tests.lgt
@@ -121,7 +121,7 @@
121
wid(X, Wid),
122
Wid == 1.
123
124
- % abs/2 tests
+ % mag/2 tests
125
test(interval_arithmetic_mag_2_01, deterministic) :-
126
new(-3, 2, X),
127
mag(X, Mag),
@@ -131,5 +131,19 @@
131
132
133
Mag == 2.
134
+
135
+ % mig/2 tests
136
137
+ % intersection/3 tests
138
+ test(interval_arithmetic_intersection_03_01, deterministic) :-
139
+ new(1, 2, X),
140
+ new(0, 4, Y),
141
+ intersection(X, Y, Inter),
142
+ Inter == (1, 2).
143
144
+ test(interval_arithmetic_intersection_03_02, fail) :-
145
146
+ new(3, 4, Y),
147
+ intersection(X, Y, _).
148
149
:- end_object.
0 commit comments