Ensure 'simple_float_constant_bad.t' passes as a failure as it checks for a bad floating point

This commit is contained in:
Tristan B. Velloza Kildaire 2023-04-12 11:38:26 +02:00
parent a8d244188e
commit ae038c4182
1 changed files with 9 additions and 1 deletions

View File

@ -89,7 +89,15 @@ jobs:
- name: Simple float constant
run: ./tlang syntaxcheck source/tlang/testing/typecheck/simple_float_constant.t
- name: Simple float constant bad
run: ./tlang syntaxcheck source/tlang/testing/typecheck/simple_float_constant_bad.t
run: |
set +e
./tlang syntaxcheck source/tlang/testing/typecheck/simple_float_constant_bad.t
if [ $? = 255 ]
then
exit 0
else
exit 1
fi
- name: Simple string
run: ./tlang syntaxcheck source/tlang/testing/typecheck/simple_string.t