Skip to content

Commit e4bd9b5

Browse files
committed
Add a test of fixed issue with same variable name
1 parent 99e8ee5 commit e4bd9b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

integration_tests/test_math.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ def test_issue_1242():
239239
assert abs(math.pi - 3.14159265358979323846) < 1e-10
240240
assert abs(math.e - 2.7182818284590452353) < 1e-10
241241

242+
# https://github.com/lcompilers/lpython/pull/1243#discussion_r1008810444
243+
pi: f64 = 8.4603959020429502
244+
assert abs(pi - 8.4603959020429502) < 1e-10
245+
assert abs(math.pi - 3.14159265358979323846) < 1e-10
246+
assert abs(math.pi - 3.14159265358979323846) < 1e-10
247+
242248

243249
def check():
244250
test_factorial_1()

0 commit comments

Comments
 (0)