File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,8 @@ RUN(NAME expr_13 LABELS llvm c
416416RUN(NAME expr_14 LABELS cpython llvm c)
417417RUN(NAME expr_15 LABELS cpython llvm c)
418418RUN(NAME expr_16 LABELS cpython c)
419+ RUN(NAME expr_17 LABELS cpython llvm c)
420+ RUN(NAME expr_18 FAIL LABELS cpython llvm c)
419421
420422RUN(NAME expr_01u LABELS cpython llvm c NOFAST)
421423RUN(NAME expr_02u LABELS cpython llvm c NOFAST)
Original file line number Diff line number Diff line change 1+ from lpython import i32 , f64
2+
3+ def main0 ():
4+ a : i32 = 4
5+ b : i32 = 3
6+ c : i32 = 12
7+ assert a * b == c , a * b
8+
9+ d : f64 = 0.4
10+ e : f64 = 2.5
11+ f : f64 = 1.0
12+ assert abs ((d * e ) - f ) <= 1e-6 , abs ((d * e ) - f )
13+
14+ assert a == b + 1 , "Failed: a == b + 1"
15+
16+ main0 ()
Original file line number Diff line number Diff line change 1+ from lpython import i32 , f64
2+
3+ def main0 ():
4+ a : i32 = 4
5+ b : i32 = 3
6+ c : i32 = 12
7+ assert a * b != c , "Error: 3 * 4 equals 12"
8+
9+ main0 ()
You can’t perform that action at this time.
0 commit comments