diff --git a/tests/reference/python-expr17-3b84714.json b/tests/reference/python-expr17-3b84714.json new file mode 100644 index 0000000000..11933a5b96 --- /dev/null +++ b/tests/reference/python-expr17-3b84714.json @@ -0,0 +1,13 @@ +{ + "basename": "python-expr17-3b84714", + "cmd": "lpython --no-color --show-python {infile}", + "infile": "tests/expr17.py", + "infile_hash": "105d03de28e04eac6f02555286cf2b954caa81d7135618017aeefe79", + "outfile": null, + "outfile_hash": null, + "stdout": "python-expr17-3b84714.stdout", + "stdout_hash": "c5754f71e1cd9a019d7289d5ccee634a42d75ac775b0e115eea48f03", + "stderr": null, + "stderr_hash": null, + "returncode": 0 +} \ No newline at end of file diff --git a/tests/reference/python-expr17-3b84714.stdout b/tests/reference/python-expr17-3b84714.stdout new file mode 100644 index 0000000000..48b07875e4 --- /dev/null +++ b/tests/reference/python-expr17-3b84714.stdout @@ -0,0 +1,14 @@ +def if_check(): + a: i32 + a = 4 + if (a) < (0): + print("negative value") + else: + if (a) > (0): + print("positive value") + else: + print("zero") + + + + diff --git a/tests/tests.toml b/tests/tests.toml index 9be71acb27..972c72bf91 100644 --- a/tests/tests.toml +++ b/tests/tests.toml @@ -140,6 +140,10 @@ cpp = true filename = "expr16.py" asr = true +[[test]] +filename = "expr17.py" +python = true + [[test]] filename = "expr_01.py" ast = true