Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added test
  • Loading branch information
czgdp1807 committed Dec 12, 2022
commit 7f2f03acde9a6241e88bdaecf83cd68754f4c2c8
1 change: 1 addition & 0 deletions integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ RUN(NAME exit_02c FAIL LABELS cpython llvm c)
# Test all four backends
RUN(NAME print_01 LABELS cpython llvm c wasm) # wasm not yet supports sep and end keywords
RUN(NAME print_03 LABELS x86 c wasm_x86) # simple test case specifically for x86 and wasm_x86
RUN(NAME print_04 LABELS cpython llvm c)

# CPython and LLVM
RUN(NAME const_01 LABELS cpython llvm c)
Expand Down
10 changes: 10 additions & 0 deletions integration_tests/print_04.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from ltypes import i8, i16, i32, i64

u: i64 = i64(-18)
print(u)
x: i32 = i32(-18)
print(x)
y: i16 = i16(-18)
print(y)
z: i8 = i8(-18)
print(z)
4 changes: 4 additions & 0 deletions tests/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ filename = "../integration_tests/print_02.py"
asr = true
pass = "print_list"

[[test]]
filename = "../integration_tests/print_04.py"
llvm = true

[[test]]
filename = "../integration_tests/generics_01.py"
asr = true
Expand Down