Skip to content

Commit 860d530

Browse files
committed
Split expr_04 into expr_15
That way the WASM backend keeps working.
1 parent 5726cb3 commit 860d530

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ RUN(NAME expr_12 LABELS llvm c)
255255
RUN(NAME expr_13 LABELS llvm c
256256
EXTRAFILES expr_13b.c)
257257
RUN(NAME expr_14 LABELS cpython llvm c)
258+
RUN(NAME expr_15 LABELS cpython llvm c)
258259
RUN(NAME loop_01 LABELS cpython llvm c)
259260
RUN(NAME loop_02 LABELS cpython llvm c wasm wasm_x86 wasm_x64)
260261
RUN(NAME loop_03 LABELS cpython llvm c wasm wasm_x64)

integration_tests/expr_04.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,6 @@ def test_floor_div_9_digits():
5252
x8 = i64(123456789)
5353
assert x8//y8 == i64(12345678)
5454

55-
def test_issue_1586():
56-
x4: i16
57-
y4: i16
58-
y4 = i16(10)
59-
x4 = i16(12345)
60-
assert x4//y4 == i16(1234)
61-
62-
a4: i8
63-
b4: i8
64-
a4 = i8(10)
65-
b4 = i8(123)
66-
assert b4//a4 == i8(12)
6755

6856
def check():
6957
test_issue_255()

integration_tests/expr_15.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from ltypes import i8, i16
2+
3+
def test_issue_1586():
4+
x4: i16
5+
y4: i16
6+
y4 = i16(10)
7+
x4 = i16(12345)
8+
assert x4//y4 == i16(1234)
9+
10+
a4: i8
11+
b4: i8
12+
a4 = i8(10)
13+
b4 = i8(123)
14+
assert b4//a4 == i8(12)
15+
16+
def check():
17+
test_issue_1586()
18+
19+
check()

0 commit comments

Comments
 (0)