Louis Gesbert
71bb67163c
Remove explicitely typed operators in tests and examples
...
Command used: `sed -i 's/\([-+*/><=]=\?\)[.$@^€$]/\1/g' **/*/*.catala_*`
The overload test, of course, is kept unchanged and ensures that explicit
operators still work.
2022-12-13 12:00:04 +01:00
Louis Gesbert
af2f5dbe19
Tweak error message location printing
2022-11-28 16:38:09 +01:00
Louis Gesbert
4d4dac6727
Some fancy unicode for error outlines
...
Normally I would make sure this is not by default, or at leat disableable; but
here the code we print may contain utf8 anyway, so the terminal really needs to
support it. Anyway, it's just a little fancier, doesn't add much.
2022-11-07 14:13:01 +01:00
Louis Gesbert
429911024c
Add parseable line-column info to error messages
...
a quick fix for now, ideally we want an option for editor-friendly output.
But for now this is a very cheap way to at least have clickable error messages
which are a big time-saver.
2022-11-07 14:03:38 +01:00
Louis Gesbert
8c1696d0ff
Inline tests: cleanup trailing whitespace
2022-09-23 16:56:21 +02:00
Louis Gesbert
0c0ef1ae1a
Add test return codes
...
Simply re-generated with 'make tests CLERK_OPTS=--reset'
2022-09-23 14:50:02 +02:00
Louis Gesbert
0ab7a0f9ce
Turn all existing tests to inline tests
...
Done using
```bash
process() { FILE=$1; awk 'match($0, /^```catala-test *{ *id *= *"(.*)" *}/, a) {print "```catala-test-inline"; f="'"$(dirname $FILE)/output/$(basename $FILE)"'." a[1]; getline; print "$ " $0; while ((getline<f) > 0) print; next} {print}' $FILE >$FILE.new; mv $FILE.new $FILE; }
for f in tests/test_*/*/*.catala_* examples/**/*.catala_*; do process $f; git add $f; done
for d in $(find -name output -type d); do git rm -r $d; done
```
2022-09-23 14:45:10 +02:00
Denis Merigoux
6c46574a83
Really fix tests and programs
2022-08-30 14:46:51 +02:00
Denis Merigoux
84e5e6445e
Added test controls
2022-08-30 14:27:25 +02:00
Hugo Gimbert
a859eeb947
NSW tests ok
2022-08-30 09:16:03 +02:00
Hugo Gimbert
61d8ff1296
Aida changes
2021-11-30 17:16:45 +01:00
Hugo Gimbert
13bc2eb54b
fixed progressive +/ added club bingo
2021-11-23 15:54:59 +01:00
Hugo Gimbert
e2bfa50b68
Merge branch 'cgr_example' of github.com:Numero7/catala into cgr_example
2021-11-23 15:31:09 +01:00
Aida Ibrahim
39b1138c3b
added club bingo
2021-11-23 15:30:58 +01:00
Hugo Gimbert
169dd033d2
Merge branch 'cgr_example' of github.com:Numero7/catala into cgr_example
2021-11-23 15:26:40 +01:00
Hugo Gimbert
663ad85b94
fixed typo in charity
2021-11-23 15:26:36 +01:00
Aida Ibrahim
3fc5c6b8fe
added exeamples
2021-11-23 15:26:22 +01:00
Aida Ibrahim
a69b80d431
examples/NSW_community_gaming
2021-11-23 15:21:29 +01:00
Hugo Gimbert
d76dbb3bae
bingo test
2021-11-19 12:05:49 +01:00
Aida Ibrahim
c8ca9a31fd
changed test name
2021-11-19 11:59:48 +01:00
Hugo Gimbert
cf73705015
fixed aida wip
2021-11-19 11:50:36 +01:00
Hugo Gimbert
8eb9d9df28
added aida files
2021-11-19 11:09:38 +01:00
Denis Merigoux
3f2fd6b641
Small cosmetic change
2021-11-06 22:10:15 +01:00
Denis Merigoux
e5ad4d2b50
Some modifcations
2021-11-06 21:58:01 +01:00
Denis Merigoux
6b6cb7fac0
Checking in files from Aida
2021-11-06 21:43:30 +01:00