Skip to content

Commit 77baa1f

Browse files
authored
[tests] register tests/expr17.py (#2580)
* register tests/expr17.py * remove cpp entry * only tests python
1 parent 605e1d0 commit 77baa1f

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "python-expr17-3b84714",
3+
"cmd": "lpython --no-color --show-python {infile}",
4+
"infile": "tests/expr17.py",
5+
"infile_hash": "105d03de28e04eac6f02555286cf2b954caa81d7135618017aeefe79",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": "python-expr17-3b84714.stdout",
9+
"stdout_hash": "c5754f71e1cd9a019d7289d5ccee634a42d75ac775b0e115eea48f03",
10+
"stderr": null,
11+
"stderr_hash": null,
12+
"returncode": 0
13+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def if_check():
2+
a: i32
3+
a = 4
4+
if (a) < (0):
5+
print("negative value")
6+
else:
7+
if (a) > (0):
8+
print("positive value")
9+
else:
10+
print("zero")
11+
12+
13+
14+

tests/tests.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ cpp = true
140140
filename = "expr16.py"
141141
asr = true
142142

143+
[[test]]
144+
filename = "expr17.py"
145+
python = true
146+
143147
[[test]]
144148
filename = "expr_01.py"
145149
ast = true

0 commit comments

Comments
 (0)