diff options
Diffstat (limited to 'js/scripting-lang/run_tests.sh')
-rwxr-xr-x | js/scripting-lang/run_tests.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/scripting-lang/run_tests.sh b/js/scripting-lang/run_tests.sh index 994f915..1f6c848 100755 --- a/js/scripting-lang/run_tests.sh +++ b/js/scripting-lang/run_tests.sh @@ -22,7 +22,7 @@ run_test() { # Capture both stdout and stderr, and get the exit code local output local exit_code - output=$(DEBUG="$DEBUG" node lang.js "$test_file" 2>&1) + output=$(DEBUG="$DEBUG" bun lang.js "$test_file" 2>&1) exit_code=$? if [ $exit_code -eq 0 ]; then @@ -45,7 +45,7 @@ run_test_with_output() { local test_name=$2 echo -e "${YELLOW}=== $test_name ===${NC}" - DEBUG="$DEBUG" node lang.js "$test_file" + DEBUG="$DEBUG" bun lang.js "$test_file" echo "" } @@ -81,6 +81,7 @@ unit_tests=( "tests/20_via_operator.txt:Via Operator" "tests/21_enhanced_case_statements.txt:Enhanced Case Statements" "tests/22_parser_limitations.txt:Parser Limitations" + "tests/23_minus_operator_spacing.txt:Minus Operator Spacing" ) for test in "${unit_tests[@]}"; do |