Skip to content

Commit 8382484

Browse files
committed
Add tests
1 parent 44229df commit 8382484

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

integration_tests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ RUN(NAME test_dict_06 LABELS cpython llvm c)
294294
RUN(NAME test_dict_07 LABELS cpython llvm)
295295
RUN(NAME test_dict_08 LABELS cpython llvm c)
296296
RUN(NAME test_dict_09 LABELS cpython llvm c)
297-
RUN(NAME test_dict_10 LABELS cpython llvm) # TODO: Add support of dict with string in C backend
297+
RUN(NAME test_dict_10 LABELS cpython llvm) # TODO: Add support of dict with string in C backend
298+
RUN(NAME test_dict_11 LABELS cpython c) # TODO: Add LLVM support
298299
RUN(NAME test_for_loop LABELS cpython llvm c)
299300
RUN(NAME modules_01 LABELS cpython llvm c wasm wasm_x86 wasm_x64)
300301
RUN(NAME modules_02 LABELS cpython llvm c wasm wasm_x86 wasm_x64)

integration_tests/test_dict_11.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from lpython import i32
2+
3+
def test_dict_11():
4+
num : dict[i32, i32]
5+
num = {11: 22, 33: 44, 55: 66}
6+
assert num.get(7, -1) == -1
7+
8+
test_dict_11()

0 commit comments

Comments
 (0)