This commit is contained in:
sfja 2026-03-11 14:54:54 +01:00
parent 6b93bf0fc6
commit ee541fbd41
2 changed files with 13 additions and 1 deletions

12
tests/if.ethlang Normal file
View File

@ -0,0 +1,12 @@
// expect: 2
fn main()
{
let a = 1;
if true {
a = 2;
}
print_int(a);
}

View File

@ -15,7 +15,7 @@ run_test_file() {
echo "- $(basename $file)"
set +e
output=$(deno run -A $SRC_DIR/main.ts $file --test)
output=$(deno run -A --check $SRC_DIR/main.ts $file --test)
status=$?
set -e