if stmt
This commit is contained in:
parent
6b93bf0fc6
commit
ee541fbd41
12
tests/if.ethlang
Normal file
12
tests/if.ethlang
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// expect: 2
|
||||||
|
|
||||||
|
fn main()
|
||||||
|
{
|
||||||
|
let a = 1;
|
||||||
|
|
||||||
|
if true {
|
||||||
|
a = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
print_int(a);
|
||||||
|
}
|
||||||
@ -15,7 +15,7 @@ run_test_file() {
|
|||||||
|
|
||||||
echo "- $(basename $file)"
|
echo "- $(basename $file)"
|
||||||
set +e
|
set +e
|
||||||
output=$(deno run -A $SRC_DIR/main.ts $file --test)
|
output=$(deno run -A --check $SRC_DIR/main.ts $file --test)
|
||||||
status=$?
|
status=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user