Skip to content

Commit b51c969

Browse files
committed
Add a test of fixed issue with same variable name
1 parent 0d1de75 commit b51c969

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integration_tests/test_math.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ 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+
242246

243247
def check():
244248
test_factorial_1()

0 commit comments

Comments
 (0)