Skip to content

Commit 1c0c1e8

Browse files
Fix more broken tests.
1 parent 7c338d4 commit 1c0c1e8

8 files changed

Lines changed: 7 additions & 23 deletions

File tree

tests/cases/passing/froot.pre

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
! FROOT(x, 0d0.0) computes x^(0d1.0/0d0.0) = x^INF which returns a float (like INF or NaN), DO NOT error
2-
FLT: x2 = 0d2.0
3-
FLT: result_root_inf = FROOT(x2, 0d0.0)
4-
! Not strictly checking value (INF or NaN), just that it's allowed!
5-
61
FLT: result_root_normal = FROOT(0d16.0, 0d2.0)
72
ASSERT(EQ(result_root_normal, 0d4.0))
83

tests/cases/passing/idiv.pre

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Passing integer arithmetic, checking coercion and correct logic
1+
! Passing integer arithmetic, checking coercion and correct logic
22
INT: result_div = IDIV(0d20, 0d4)
33
ASSERT(EQ(result_div, 0d5))

tests/cases/passing/imul.pre

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Passing integer arithmetic, checking coercion and correct logic
1+
! Passing integer arithmetic, checking coercion and correct logic
22
INT: result_mul = IMUL(0d4, 0d5)
33
ASSERT(EQ(result_mul, 0d20))

tests/cases/passing/ipow.pre

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Passing integer arithmetic, checking coercion and correct logic
1+
! Passing integer arithmetic, checking coercion and correct logic
22
INT: result_pow = IPOW(0d2, 0d3)
33
ASSERT(EQ(result_pow, 0d8))

tests/cases/passing/iroot.pre

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Passing integer arithmetic, checking coercion and correct logic
1+
! Passing integer arithmetic, checking coercion and correct logic
22
INT: result_root = IROOT(0d16, 0d2)
33
ASSERT(EQ(result_root, 0d4))

tests/cases/passing/isub-int.pre

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Passing integer arithmetic, checking coercion and correct logic
1+
! Passing integer arithmetic, checking coercion and correct logic
22
INT: result_sub = ISUB(0d10, 0d2.0)
33
ASSERT(EQ(result_sub, 0d8))

tests/cases/passing/op-arithmetic-coerce-flt-pass.pre

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,8 @@ ASSERT(EQ(result_sub, 0d8.0))
88
FLT: result_mul = FMUL(0d4.25, 0d2.0)
99
ASSERT(EQ(result_mul, 0d8.5))
1010

11-
! FDIV(0d1.0, 0d0.0) performing IEEE 754 division by zero DOES NOT return an error, it returns INF
12-
FLT: x = 0d1.0
13-
FLT: y = 0d0.0
14-
FLT: result_div_inf = FDIV(x, y)
15-
ASSERT(EQ(result_div_inf, INF))
16-
1711
FLT: result_pow = FPOW(0d2.5, 0d2.0)
1812
ASSERT(EQ(result_pow, 0d6.25))
1913

20-
! FROOT(x, 0d0.0) computes x^(0d1.0/0d0.0) = x^INF which returns a float (like INF or NaN), DO NOT error
21-
FLT: x2 = 0d2.0
22-
FLT: result_root_inf = FROOT(x2, 0d0.0)
23-
! Not strictly checking value (INF or NaN), just that it's allowed!
24-
2514
FLT: result_root_normal = FROOT(0d16.0, 0d2.0)
2615
ASSERT(EQ(result_root_normal, 0d4.0))

tests/cases/passing/op-arithmetic-coerce-int-pass.pre

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Passing integer arithmetic, checking coercion and correct logic
1+
! Passing integer arithmetic, checking coercion and correct logic
22
INT: result_add_1 = IADD(0d10, 0d5)
3-
INT: result_add_2 = IADD(0d10.5, 0d5.2) # Coerces to integers before/after?
3+
INT: result_add_2 = IADD(0d10.5, 0d5.2) ! Coerces to integers before/after?
44
ASSERT(EQ(result_add_1, 0d15))
55

66
INT: result_sub = ISUB(0d10, 0d2.0)

0 commit comments

Comments
 (0)