File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 47
47
new(1 , 2 , X ),
48
48
new(3 , 4 , Y ),
49
49
add(X , Y , Sum ),
50
- Sum == [ 4 , 6 ] .
50
+ Sum == ( 4 , 6 ) .
51
51
52
52
test(interval_arithmetic_add_3_02, fail ) : -
53
53
new(1 , 2 , X ),
54
54
new(3 , 4 , Y ),
55
55
add(X , Y , Sum ),
56
- Sum == [ 6 , 7 ] .
56
+ Sum == ( 6 , 7 ) .
57
57
58
58
% sub/3 tests
59
59
test(interval_arithmetic_sub_3_01, deterministic) : -
60
60
new(1 , 2 , X ),
61
61
new(3 , 4 , Y ),
62
62
sub(X , Y , Sub ),
63
- Sub == [ - 3 , - 1 ] .
63
+ Sub == ( - 3 , - 1 ) .
64
64
65
65
test(interval_arithmetic_sub_3_02, fail ) : -
66
66
new(1 , 2 , X ),
67
67
new(3 , 4 , Y ),
68
68
sub(X , Y , Sub ),
69
- Sub == [ 5 , 6 ] .
69
+ Sub == ( 5 , 6 ) .
70
70
71
71
% mul/3 tests
72
72
test(interval_arithmetic_mul_3_01, deterministic) : -
73
73
new(1 , 2 , X ),
74
74
new(3 , 4 , Y ),
75
75
mul(X , Y , Mul ),
76
- Mul == [ 3 , 8 ] .
76
+ Mul == ( 3 , 8 ) .
77
77
78
78
test(interval_arithmetic_mul_3_02, fail ) : -
79
79
new(1 , 2 , X ),
80
80
new(3 , 4 , Y ),
81
81
mul(X , Y , Mul ),
82
- Mul == [ 1 , 4 ] .
82
+ Mul == ( 1 , 4 ) .
83
83
84
84
% div/3 tests
85
85
test(interval_arithmetic_div_3_01, deterministic) : -
86
86
new(1 , 2 , X ),
87
87
new(4 , 5 , Y ),
88
88
div(X , Y , Div ),
89
- Div == [ 0.2 , 0.5 ] .
89
+ Div == ( 0.2 , 0.5 ) .
90
90
91
91
test(interval_arithmetic_div_3_02, fail ) : -
92
92
new(1 , 2 , X ),
93
93
new(4 , 5 , Y ),
94
94
div(X , Y , Div ),
95
- Div == [ 0.2 , 0.25 ] .
95
+ Div == ( 0.2 , 0.25 ) .
96
96
97
97
test(interval_arithmetic_div_3_03, fail ) : -
98
98
new(1 , 2 , X ),
You can’t perform that action at this time.
0 commit comments