Skip to content

Commit a3300ba

Browse files
committed
Add tests
1 parent cf7c44b commit a3300ba

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ RUN(NAME expr_15 LABELS cpython llvm c)
418418
RUN(NAME expr_16 LABELS cpython c)
419419
RUN(NAME expr_17 LABELS cpython llvm c)
420420
RUN(NAME expr_18 FAIL LABELS cpython llvm c)
421+
RUN(NAME expr_19 LABELS cpython llvm c)
421422

422423
RUN(NAME expr_01u LABELS cpython llvm c NOFAST)
423424
RUN(NAME expr_02u LABELS cpython llvm c NOFAST)

integration_tests/expr_19.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from lpython import (f64,)
2+
3+
result : f64 = f64(14)
4+
divisor : f64 = f64(4)
5+
result /= divisor
6+
7+
assert abs(result - f64(3.5)) < 1e-12

0 commit comments

Comments
 (0)