Louis Gesbert
2e5050481d
Register all existing tests through the new engine
...
I removed the '.out' extension for now to preserve the test output file names and avoid a million file renames.
This makes the patch easier to read, and we can do the rename easily in another patch afterwards, without mixing with semantic changes.
(beautiful script àlarrache:
```bash
for f in */*/output/*; do
target_base=${f##*/}
target_base=${target_base%%.*}
echo $f | awk -F. '{
f=$1"."$2; if ($4 == "") { mode=$3; id=$3 } else { scope="-s "$3; mode=$4; id=$3"."$4}
printf "\n```catala-test {id=\"%s\"}\ncatala %s %s\n```\n",id,mode,scope;
}' >> $(dirname $f)/../${target_base}.*; done
```
2022-07-08 17:06:20 +02:00
Denis Merigoux
3f49824150
Merge branch 'master' into c_backend
2022-04-04 18:02:33 +02:00
Denis Merigoux
ce7e756af1
Nice error messages for empty structs and enums
2022-03-28 14:43:38 +02:00
Denis Merigoux
2263dd7dab
Update syntax highlighting and test suite [skip ci]
2022-02-07 12:04:48 +01:00
Denis Merigoux
72274057cd
Better Dcalc printing
2022-02-06 18:25:37 +01:00
Denis Merigoux
b2a5551961
Test folders, nice doc and messages
2022-01-11 12:51:34 +01:00
Denis Merigoux
2b6e7c8b98
Working prototype of clerk, the new build system for Catala
2022-01-10 17:57:58 +01:00
Denis Merigoux
56baf91923
Remove prefixes to each line in messages, keep only first line
2021-11-06 23:04:12 +01:00
Denis Merigoux
b72d8e09ee
Restore typechecking version of CGI example
2021-09-28 12:01:08 +02:00
EmileRolley
0ffbb9b266
refactor(tests)!: migrate test file from the abbreviated syntax to the english one
2021-05-26 21:16:29 +02:00
Denis Merigoux
3c8d187be0
Big refactoring of the literate programming structure
...
Partially fixes #120
Removes the distinction between headers and articles, streamlines the surface AST
Changes affects lexers and parser
2021-05-15 01:16:08 +02:00
Denis Merigoux
d69f1a4a39
Fixes #107
2021-04-29 17:46:56 +02:00
Denis Merigoux
896a83db4a
Fix test output
2021-03-17 19:43:36 +01:00
Denis Merigoux
d26bef400b
Fix #47
2021-03-12 17:07:25 +01:00
EmileRolley
c0a9344eca
refactor(tests): update tests based on the abbreviated english lexer
2021-03-09 22:07:31 +01:00
Aymeric Fromherz
f154ec15ad
Add support for fully qualified enum elements
2021-01-26 10:38:10 -05:00
Aymeric Fromherz
e1ac9564c2
Add a few tests for fully qualified struct accesses
2021-01-25 23:08:30 -05:00
Aymeric Fromherz
ec1695e41e
Add failing test for ambiguous struct fields
2021-01-25 22:31:48 -05:00
Aymeric Fromherz
ba03d2db78
Move tests to appropriate folders
2021-01-25 01:16:46 -05:00
Aymeric Fromherz
e63bdf0634
More precise pattern matching when looking for source file in test framework
2021-01-23 20:57:31 -05:00
Aymeric Fromherz
483400ea19
Move tests to their appropriate directory
2021-01-23 20:49:17 -05:00
Denis Merigoux
4d1d3a2e1c
Reset tests
2021-01-20 19:21:02 +01:00
Denis Merigoux
267baea28d
Fixes #58
2021-01-14 00:17:24 +01:00
Denis Merigoux
8f2811b66f
Changed output formatting
2020-12-31 00:32:17 +01:00
Denis Merigoux
ebf14f6121
Added assertions, starting to execute section132
2020-12-10 18:11:43 +01:00
Denis Merigoux
a4916208ba
amount -> money
2020-12-10 09:35:36 +01:00
Denis Merigoux
5abb73157f
Fix content/type lexer issue in nv
2020-12-06 18:09:48 +01:00
Denis Merigoux
9170630a6e
Added better test
2020-12-06 13:00:38 +01:00
Denis Merigoux
ee0cb1eefc
Preventing recursive type definitions
2020-12-06 12:32:36 +01:00
Denis Merigoux
8abe20849d
Passing simple test
2020-12-06 11:42:47 +01:00
Denis Merigoux
70aa8ae2c1
Simple struct test passing
2020-12-05 17:27:08 +01:00
Denis Merigoux
0f853909ef
Implemented name resolution
2020-12-04 18:02:49 +01:00