Ensure that a failure passes for 'simple_literals2.t' which checks for a failing to coerce due to incompatible types

This commit is contained in:
Tristan B. Velloza Kildaire 2023-04-12 11:33:34 +02:00
parent d99b23d64c
commit e80571758f
1 changed files with 10 additions and 2 deletions

View File

@ -207,8 +207,16 @@ jobs:
- name: Simple literals
run: ./tlang typecheck source/tlang/testing/simple_literals.t
- name: Simple literals 2
run: ./tlang typecheck source/tlang/testing/simple_literals2.t
- name: Simple literals 2 (uncoercible)
run: |
set e+
./tlang typecheck source/tlang/testing/simple_literals2.t
if [ $? = 255 ]
then
exit 0
else
exit 1
fi
- name: Simple literals 3
run: ./tlang typecheck source/tlang/testing/simple_literals3.t
- name: Simple literals 4