Skip to content

Commit 3feef19

Browse files
authored
Merge pull request #380 from Smit-create/fix1
Remove fixed TODO
2 parents a19e49d + d4285fc commit 3feef19

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

integration_tests/test_math_02.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
tanh, sinh, cosh, hypot, copysign)
44

55
def test_trig():
6-
# TODO: importing from `math` doesn't work here yet:
7-
pi: f64 = 3.141592653589793238462643383279502884197
86
eps: f64 = 1e-12
97
assert abs(sin(0.0)-0) < eps
108
assert abs(sin(pi/2)-1) < eps

integration_tests/test_max_min.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ltypes import i32 ,f32 ,f64
1+
from ltypes import i32, f64
22

33
def test_max_int():
44
a: i32 = 1

integration_tests/test_types_01.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ def test_i64():
2020
i = 5
2121
assert i == 5
2222

23-
test_i8()
24-
test_i16()
25-
test_i32()
26-
test_i64()
23+
24+
def check():
25+
test_i8()
26+
test_i16()
27+
test_i32()
28+
test_i64()
29+
30+
31+
check()

tests/reference/asr-test_max_min-3c2fc51.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"basename": "asr-test_max_min-3c2fc51",
33
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
44
"infile": "tests/../integration_tests/test_max_min.py",
5-
"infile_hash": "df25c4bdf10041948626093627df9f45d2233315cc19543b3406d1f4",
5+
"infile_hash": "40074f8e86db8c8b57cb34ac1b632ae503cfd6e1f0bb8f1c9869ae5d",
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-test_max_min-3c2fc51.stdout",

0 commit comments

Comments
 (0)