Skip to content

Commit b07edc4

Browse files
committed
changed lists to pairs in the tests file, refs #9, #7
1 parent 70af876 commit b07edc4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests.lgt

+8-8
Original file line numberDiff line numberDiff line change
@@ -47,52 +47,52 @@
4747
new(1, 2, X),
4848
new(3, 4, Y),
4949
add(X, Y, Sum),
50-
Sum == [4, 6].
50+
Sum == (4, 6).
5151

5252
test(interval_arithmetic_add_3_02, fail) :-
5353
new(1, 2, X),
5454
new(3, 4, Y),
5555
add(X, Y, Sum),
56-
Sum == [6, 7].
56+
Sum == (6, 7).
5757

5858
% sub/3 tests
5959
test(interval_arithmetic_sub_3_01, deterministic) :-
6060
new(1, 2, X),
6161
new(3, 4, Y),
6262
sub(X, Y, Sub),
63-
Sub == [-3, -1].
63+
Sub == (-3, -1).
6464

6565
test(interval_arithmetic_sub_3_02, fail) :-
6666
new(1, 2, X),
6767
new(3, 4, Y),
6868
sub(X, Y, Sub),
69-
Sub == [5, 6].
69+
Sub == (5, 6).
7070

7171
% mul/3 tests
7272
test(interval_arithmetic_mul_3_01, deterministic) :-
7373
new(1, 2, X),
7474
new(3, 4, Y),
7575
mul(X, Y, Mul),
76-
Mul == [3, 8].
76+
Mul == (3, 8).
7777

7878
test(interval_arithmetic_mul_3_02, fail) :-
7979
new(1, 2, X),
8080
new(3, 4, Y),
8181
mul(X, Y, Mul),
82-
Mul == [1, 4].
82+
Mul == (1, 4).
8383

8484
% div/3 tests
8585
test(interval_arithmetic_div_3_01, deterministic) :-
8686
new(1, 2, X),
8787
new(4, 5, Y),
8888
div(X, Y, Div),
89-
Div == [0.2, 0.5].
89+
Div == (0.2, 0.5).
9090

9191
test(interval_arithmetic_div_3_02, fail) :-
9292
new(1, 2, X),
9393
new(4, 5, Y),
9494
div(X, Y, Div),
95-
Div == [0.2, 0.25].
95+
Div == (0.2, 0.25).
9696

9797
test(interval_arithmetic_div_3_03, fail) :-
9898
new(1, 2, X),

0 commit comments

Comments
 (0)