mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Adapt existing tests output
This commit is contained in:
parent
e7beb0daad
commit
6d3239376f
@ -29,5 +29,24 @@ $ catala Typecheck
|
||||
│ 8 │ definition test_var equals 10 xor 20
|
||||
│ │ ‾‾‾
|
||||
└─ 'xor' should be a boolean operator
|
||||
┌─[ERROR]─
|
||||
│
|
||||
│ Error during typechecking, incompatible types:
|
||||
│ ─➤ integer
|
||||
│ ─➤ bool
|
||||
│
|
||||
│ This expression has type integer:
|
||||
├─➤ tests/bool/bad/test_xor_with_int.catala_en:8.37-8.39:
|
||||
│ │
|
||||
│ 8 │ definition test_var equals 10 xor 20
|
||||
│ │ ‾‾
|
||||
├─ 'xor' should be a boolean operator
|
||||
│
|
||||
│ Expected type bool coming from expression:
|
||||
├─➤ tests/bool/bad/test_xor_with_int.catala_en:8.33-8.36:
|
||||
│ │
|
||||
│ 8 │ definition test_var equals 10 xor 20
|
||||
│ │ ‾‾‾
|
||||
└─ 'xor' should be a boolean operator
|
||||
#return code 123#
|
||||
```
|
||||
|
@ -16,7 +16,7 @@ $ catala Typecheck
|
||||
│
|
||||
│ Error during typechecking, incompatible types:
|
||||
│ ─➤ decimal
|
||||
│ ─➤ list
|
||||
│ ─➤ list of any
|
||||
│
|
||||
│ This expression has type decimal:
|
||||
├─➤ tests/typing/bad/err2.catala_en:10.39-10.42:
|
||||
@ -24,7 +24,7 @@ $ catala Typecheck
|
||||
│ 10 │ definition a equals number of (z ++ 1.1) / 2
|
||||
│ │ ‾‾‾
|
||||
│
|
||||
│ Expected type list coming from expression:
|
||||
│ Expected type list of any coming from expression:
|
||||
├─➤ tests/typing/bad/err2.catala_en:10.36-10.38:
|
||||
│ │
|
||||
│ 10 │ definition a equals number of (z ++ 1.1) / 2
|
||||
|
Loading…
Reference in New Issue
Block a user