Commit Graph

260 Commits

Author SHA1 Message Date
Aymeric Fromherz
661b30f638 Add bad tests for date_get_year 2022-01-17 15:05:06 +01:00
Aymeric Fromherz
c7fd00702a Fix good get year test + reset [skip ci] 2022-01-17 15:04:05 +01:00
Aymeric Fromherz
cf63e4f3d3 Restore pretty-printing of enum model [skip ci] 2022-01-14 21:10:34 +01:00
Aymeric Fromherz
271d20dcaf todo outputs for bad struct tests [skip ci] 2022-01-14 20:42:06 +01:00
Aymeric Fromherz
ede73501d6 Add bad struct tests [skip ci] 2022-01-14 20:41:03 +01:00
Aymeric Fromherz
8b1c2d0891 reset test [skip ci] 2022-01-14 20:38:11 +01:00
Aymeric Fromherz
9684e14b1b reset tests [skip ci] 2022-01-14 19:24:20 +01:00
Aymeric Fromherz
a128a188ee reset [skip ci] 2022-01-14 19:05:58 +01:00
Aymeric Fromherz
9727acc788 more tests [skip ci] 2022-01-14 19:04:23 +01:00
Aymeric Fromherz
38b4912161 Reset test [skip ci] 2022-01-14 19:02:59 +01:00
Aymeric Fromherz
867fc46515 Add more complex enum test [skip ci] 2022-01-14 19:01:23 +01:00
Aymeric Fromherz
cc026e35b3 Add negative tests for enums 2022-01-14 18:37:32 +01:00
Aymeric Fromherz
d7563c229e Reset test [skip ci] 2022-01-14 18:34:58 +01:00
Denis Merigoux
08591fd178
Add link to demo 2022-01-14 16:52:30 +01:00
Aymeric Fromherz
7ca0ca4012 Reset bad dates examples with expected outputs [skip ci] 2022-01-14 02:09:20 +01:00
Aymeric Fromherz
59e36d2750 Reset good dates simple test [skip ci] 2022-01-14 01:56:07 +01:00
Aymeric Fromherz
c8be75ca75 Z3encoding: Add bad tests related to dates [skip ci] 2022-01-13 20:28:28 +01:00
Aymeric Fromherz
52f33aa1ae Fix good date example [skip ci] 2022-01-13 20:25:16 +01:00
Aymeric Fromherz
a6c88b103f Reset bad money tests [skip ci] 2022-01-13 20:13:12 +01:00
Aymeric Fromherz
28935c689d Reset good money test [skip ci] 2022-01-13 20:12:28 +01:00
Aymeric Fromherz
a15fb872ef Fix money tests [skip ci] 2022-01-13 20:11:42 +01:00
Aymeric Fromherz
69e34b4ae7 Negative tests for money [skip ci] 2022-01-13 19:34:34 +01:00
Denis Merigoux
428ae95c62
[skip ci] Added a walkthrough example for ProLaLa + tweaked tests output order of vcs 2022-01-13 16:58:43 +01:00
Denis Merigoux
496775b148
Dates and money tests 2022-01-13 16:20:43 +01:00
Denis Merigoux
bf444f548f
Error message pretty-printing and sat solving example [skip ci] 2022-01-13 10:46:23 +01:00
Aymeric Fromherz
c0a8362fd9 [skip ci] Z3 encoding: update last missing examples with TODOs 2022-01-12 19:19:42 +01:00
Aymeric Fromherz
d6205369bb [skip ci] reset bad proof tests 2022-01-12 19:09:50 +01:00
Aymeric Fromherz
ad974b16d6 [skip ci] reset bad proof test 2022-01-12 18:17:25 +01:00
Aymeric Fromherz
47032e058a [skip ci] reset bad proof test 2022-01-12 18:16:46 +01:00
Aymeric Fromherz
1241f332d5 [skip ci] proof platform: functions good test now passing 2022-01-12 17:38:49 +01:00
Denis Merigoux
78b1fe08f4
[skip ci] Always name of the variable on the left 2022-01-12 16:56:05 +01:00
Denis Merigoux
6d06f9c81c
Prettified error messages 2022-01-12 16:50:10 +01:00
Aymeric Fromherz
5cb55e16fb [skip ci] more minor test resets 2022-01-12 15:06:46 +01:00
Aymeric Fromherz
157aab06f4 [skip ci] reset second bad test for proof platform 2022-01-12 15:01:45 +01:00
Denis Merigoux
1bf3748283
Fix Makefiles and relative paths [skip ci] 2022-01-12 15:00:53 +01:00
Denis Merigoux
48c7be32eb
Launch clerk from correct directory to have the correct error messages 2022-01-12 14:51:27 +01:00
Aymeric Fromherz
5f28db6e74 Add output for bad proof test 2022-01-12 14:51:19 +01:00
Aymeric Fromherz
1d3bd4a914 [skip ci] reset working good tests with new output 2022-01-12 14:47:09 +01:00
Alain
de6f943c9c more basic bad examples 2022-01-12 09:41:03 +01:00
Alain
659c09b585 added a test 2022-01-12 08:19:58 +01:00
Denis Merigoux
260959b088
Formatting + correct expected tests output 2022-01-11 18:33:45 +01:00
Aymeric Fromherz
b7e11e79b9 record correct simple_vars 2022-01-11 18:04:10 +01:00
Aymeric Fromherz
5cd1d6f488 Record expected output for no_vars.catala_en 2022-01-11 18:01:50 +01:00
Denis Merigoux
83bdd0b632
Test base for verification conditions encoding 2022-01-11 16:13:34 +01:00
Denis Merigoux
fa8803e297
Bad quoting for catala compiler options 2022-01-11 13:05:04 +01:00
Denis Merigoux
b2a5551961
Test folders, nice doc and messages 2022-01-11 12:51:34 +01:00
Denis Merigoux
7fc37f9af8
Added controls for Dcalc and Scopelang 2022-01-11 11:25:41 +01:00
Denis Merigoux
a963a01f60
Unit tests for examples now use clerk 2022-01-11 10:42:12 +01:00
Denis Merigoux
7a00d166f9
Update documentation for unit tests 2022-01-10 18:45:02 +01:00
Denis Merigoux
0f54f1d2ac
Ability to reset tests 2022-01-10 18:35:41 +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
909e539cdc
Fixed all bugs 2022-01-05 15:57:18 +01:00
Denis Merigoux
82c09ee455
Fixed a bug [skip ci] 2022-01-05 15:37:34 +01:00
Denis Merigoux
e9d54e120d
Changed label scoping from scope to scope definition key [skip ci] 2022-01-03 18:39:59 +01:00
Denis Merigoux
3f41156282
Motivaing example [skip-ci] 2022-01-03 11:18:35 +01:00
Denis Merigoux
dde455c560
Merge branch 'master' into grouped_exceptions 2021-11-28 13:19:00 +01:00
Denis Merigoux
07167ee911
Better error message 2021-11-28 13:16:55 +01:00
Denis Merigoux
4137641c8c
Better error message 2021-11-28 13:16:21 +01:00
Denis Merigoux
d1b75b047b
Give a name to every rule and def, label or not 2021-11-28 13:09:44 +01:00
Denis Merigoux
d2ae2d72ee
Error when duplicate labels 2021-11-28 12:28:55 +01:00
Denis Merigoux
166baf42af
Error when duplicate labels 2021-11-28 12:28:30 +01:00
Denis Merigoux
8c0694ba15
Fixes #101 2021-11-12 09:43:23 +01:00
Denis Merigoux
56baf91923
Remove prefixes to each line in messages, keep only first line 2021-11-06 23:04:12 +01:00
Emile Rolley
9aaa614410 refactor(parser): add the new catala-metadata markup 2021-10-01 10:01:25 +02:00
Denis Merigoux
b72d8e09ee
Restore typechecking version of CGI example 2021-09-28 12:01:08 +02:00
EmileRolley
6169d19b1e feat(compiler): add collection concatenation operator 2021-07-08 16:27:46 +02:00
Denis Merigoux
bbd50747d9
Big renaming and dir reorg 2021-06-21 11:39:06 +02:00
EmileRolley
1597f43a1a refactor(compiler): unreachable match case error change to warning 2021-06-03 16:43:04 +02:00
EmileRolley
3c385e41a6 fix(tests): replace wildcard keyword with the right syntax 2021-06-03 15:47:07 +02:00
EmileRolley
5060565ed2 fix: update all syntax highlighting in order to match widlcard keywords 2021-06-03 15:33:40 +02:00
EmileRolley
ed51544a10 feat(compiler): improve error messages for not ending wildcards 2021-06-03 12:24:12 +02:00
EmileRolley
846c85a9a6 test(compiler): add unit tests for wildcard in patterns 2021-06-03 12:24:12 +02:00
EmileRolley
71d92aeef1 feat(compiler): start to add wildcard in patterns 2021-06-03 12:24:12 +02:00
EmileRolley
be90d61dc1 fix(compiler): refactor and fix the duration division operator evaluation 2021-05-31 10:42:20 +02:00
EmileRolley
4e53358fd6 feat(compiler): add the Runtime.IndivisableDurations exception handling 2021-05-31 10:26:51 +02:00
EmileRolley
1572244e2d fix(tests): add test case for the good utilisation of the duration division operator 2021-05-31 10:26:51 +02:00
EmileRolley
4e84f424eb feat(compiler): start to add the duration division operator 2021-05-31 10:26:51 +02:00
EmileRolley
f907431504 refactor(compiler): factorize the UncomparableDurations exception managment in Dcalc.interpreter + add unit tests 2021-05-29 20:17:22 +02:00
EmileRolley
31f1c13763 fix(compiler)!: fix the Division_by_zero managment in Dcalc.interpreter 2021-05-29 18:56:20 +02:00
EmileRolley
27bd227079 fix(tests): update the .run rule in order to manage all catala file extensions 2021-05-29 18:54:00 +02:00
EmileRolley
ec43e82d09 docs(test): update the README.md 2021-05-26 21:57:51 +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
EmileRolley
75570864d2 fix(tests): update the .in rule fo the Makefile in order to manage all catala extensions 2021-05-26 18:19:33 +02:00
EmileRolley
866a29a643 feat(lexer): improve grave accent lexing outside code blocks 2021-05-24 23:04:43 +02:00
EmileRolley
4e168eff64 feat(lexer): update the polish lexer to support grave accent outside code blocks 2021-05-24 16:23:45 +02:00
EmileRolley
d00ba4740f feat(tests): modify the .out rule of the Makefile in order to manage other input file syntax than the abbrieviated one 2021-05-24 15:54:27 +02:00
EmileRolley
c317332218 tests(lexer): add tests for the literate programming 2021-05-24 15:54:27 +02:00
EmileRolley
4e6e532ce8 feat(lexer): allows to use '`' inside law text 2021-05-24 15:54:27 +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
147e35083e
Point directly to executable instead of dune exec 2021-05-14 18:44:06 +02:00
Denis Merigoux
d69f1a4a39
Fixes #107 2021-04-29 17:46:56 +02:00
Denis Merigoux
33f781c3b5 Update tests with better error message 2021-04-03 19:35:59 +02:00
Denis Merigoux
c4fc0ff622
Merge branch 'master' into xor 2021-03-19 16:23:35 +01:00
Denis Merigoux
896a83db4a
Fix test output 2021-03-17 19:43:36 +01:00
EmileRolley
8f9ec2b623 fix: update all ASTs and the interpreter in order to support the 'xor' operand 2021-03-16 20:34:03 +01:00
EmileRolley
f507620462 feat(catala_nv): add the xor operator 2021-03-16 18:34:59 +01:00
EmileRolley
b40abce52f refactor(tests): change the date format to ISO 2021-03-16 12:10:33 +01:00
Denis Merigoux
d26bef400b
Fix #47 2021-03-12 17:07:25 +01:00
EmileRolley
3f88dbe2ae fix(tests): modify some of the expected test outputs because of removed trailling whitespaces 2021-03-09 22:08:55 +01:00
EmileRolley
c0a9344eca refactor(tests): update tests based on the abbreviated english lexer 2021-03-09 22:07:31 +01:00