mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 17:10:22 +03:00
b087ca4f47
- Improved implementation of suggestions (suggestion_minimum_levenshtein_distance_association > suggestions.ml)
- Magnifying glass emoji added for suggestions
- Improve display by...
- Fixing "Pos.ml" (pretty-printing box not closed)
- Remove unnecessary spaces
- compiler/surface/parserdriver.ml
- Optionnal suggestions added when raising a parser error
- Function "levenshtein_distance" removed and replaced by "Suggestions.levenshtein_distance"
- Tests updated (mostly line breaks and spacing changes)
- Variable names renamed for greater clarity
- (Based on commit 0813f5c36e
)
29 lines
654 B
Plaintext
29 lines
654 B
Plaintext
## Test
|
|
|
|
```catala
|
|
declaration scope A:
|
|
output foo content integer
|
|
state bar
|
|
state baz
|
|
|
|
scope A:
|
|
label thing definition foo state bar equals 2
|
|
|
|
definition foo state baz equals foo + 1
|
|
|
|
exception thing definition foo state baz under condition true consequence equals 3
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala Typecheck
|
|
[ERROR]
|
|
Unknown label for the scope variable foo.baz: "thing"
|
|
|
|
┌─⯈ tests/test_variable_state/bad/no_cross_exceptions.catala_en:14.13-14.18:
|
|
└──┐
|
|
14 │ exception thing definition foo state baz under condition true consequence equals 3
|
|
│ ‾‾‾‾‾
|
|
└─ Test
|
|
#return code 123#
|
|
```
|