Skip to content

Commit 509b21f

Browse files
committed
Add a test for if-expressions
1 parent 0280c48 commit 509b21f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/mochi_test_if.mochi

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def test_if():
2+
x = if 1 > 2:
3+
10
4+
else:
5+
30
6+
x
7+
8+
def result_test_if():
9+
30

0 commit comments

Comments
 (0)