diff options
Diffstat (limited to 'tests/conditionals.bad')
-rw-r--r-- | tests/conditionals.bad | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/conditionals.bad b/tests/conditionals.bad index aca5c36..85de62a 100644 --- a/tests/conditionals.bad +++ b/tests/conditionals.bad | |||
@@ -1,8 +1,8 @@ | |||
1 | ; Basic if expressions. | 1 | ; Basic if expressions. |
2 | if true "hello" | 2 | if true "hello" else "world" |
3 | 3 | ||
4 | ; These can produce values and the result bound to a name. | 4 | ; These can produce values and the result bound to a name. |
5 | let a = if (2 + 2 >= 4) 42 | 5 | let a = if (2 + 2 >= 4) 42 else 0 |
6 | 6 | ||
7 | ; We support a single if expression. | 7 | ; We support a single if expression. |
8 | let b = if (0xff == 0x32) "hello" else "world" | 8 | let b = if (0xff == 0x32) "hello" else "world" |