Patrick Pelissier
9eba30648d
Rename M_INVERT into M_REVERSE to be more coherent with REVERSE operator
2021-02-06 21:58:45 +01:00
Patrick Pelissier
ad39cdd393
Add some tests for new function
2021-02-05 00:17:18 +01:00
Patrick Pelissier
8597b0b8c0
Fix warning on clang and old gcc
2021-01-18 18:21:01 +01:00
Patrick Pelissier
bce86460fe
Rewrite test cases to avoid potential warnings
2021-01-18 18:16:05 +01:00
Patrick Pelissier
25fe26deaa
Happy new year
2021-01-13 20:18:01 +01:00
Patrick Pelissier
944d29e8bc
Workaround CLANG preprocessor failure on Windows platform
2021-01-10 20:03:28 +01:00
Patrick Pelissier
3df2408ffb
Add macro M_CSTR
2021-01-10 09:26:27 +01:00
Patrick Pelissier
06b79a6caa
Add tests for M_AS_TYPE
2021-01-07 22:13:10 +01:00
Patrick Pelissier
a580aaac83
Add more test cases for M_EMPTY_P
2020-12-31 00:11:37 +01:00
Patrick Pelissier
4dbcfd25b3
Fix non support of break in M_LET_IF
2020-12-16 15:27:41 +01:00
Patrick Pelissier
15d0b86c62
Update documentation & add tests as per lastest changes
2020-12-16 11:07:11 +01:00
Patrick Pelissier
e893560a48
Add macros M_LET_IF and M_DEFER to help handling with runtime errors
2020-12-14 21:26:07 +01:00
Patrick Pelissier
f89ba94689
Add test for computing C-string hash (raise assertion failure)
2020-11-29 19:35:52 +01:00
Patrick Pelissier
56d2a74818
Fix some warnings
2020-07-09 23:38:34 +02:00
Patrick Pelissier
b040bc411f
Add tests for builtin core functions
2020-06-25 23:35:34 +02:00
Patrick Pelissier
9080f5d52f
Add basic tests for M_KEEP_ARGS / M_SKIP_ARGS / M_MID_ARGS
2020-06-12 20:00:04 +02:00
Patrick Pelissier
2f4df5f67c
Fix potential read before init in test.
2020-05-24 19:07:29 +02:00
Patrick Pelissier
9655b13203
Add more corner cases for M_PARENTHESIS_P
2020-05-02 10:18:52 +02:00
Patrick Pelissier
6b97a7436d
Add basic tests for dispathing init_with based on their number of args
2020-05-02 10:06:30 +02:00
Patrick Pelissier
a9b06718f0
* Add simple test for NAME operator
2020-05-02 09:55:28 +02:00
Patrick Pelissier
a5fbd8405c
Avoid C99 construct incompatible with strict C++ compiler
2020-02-24 22:27:43 +01:00
Patrick Pelissier
4f7b0b9455
Happy new year 2020
2020-01-04 15:41:06 +01:00
Patrick Pelissier
7fe36f7bd7
Add test for M_MOVE_DEFAULT
2019-11-29 23:12:34 +01:00
Patrick Pelissier
8b3a4a802c
Happy new year!
2019-01-02 18:12:07 +01:00
Patrick Pelissier
83208f74ec
Add one more test.
2018-09-17 22:20:26 +02:00
Patrick Pelissier
2e3b312fab
Fix issue of recursive usage of M_GLOBAL_OPLIST_OR_DEF
...
Update the way to use the macro to avoid being limited by the
preprocessor limitation.
2018-09-14 20:57:55 +02:00
Patrick Pelissier
2197c4ce81
Add more cases to test.
2018-09-01 09:50:28 +02:00
Patrick Pelissier
b894d64063
Add support for INIT_WITH in M_LET in C99 mode.
2018-09-01 09:47:32 +02:00
Patrick Pelissier
dbcade3087
Add support for given an argument for the initialization of a variable in M_LET
...
if the variable is within parenthesis:
M_LET((a,b), string_t)
==> It will init a & set it to b.
For the moment, we can only init with value of the same type (through init_set)
2018-08-31 00:02:03 +02:00
Patrick Pelissier
71db5f9a79
Support for break to break the execution of M_LET
2018-08-25 00:11:20 +02:00
Patrick Pelissier
2ab2b9efd6
Add primitive to parse standard C types (except const char*)
2018-08-21 19:53:55 +02:00
Patrick Pelissier
8dafe3b7a6
Add macro M_GET_AT.
2018-07-04 17:39:03 +02:00
Patrick Pelissier
2fbea43a5c
Add M_MAP3 macro.
2018-05-16 20:00:41 +02:00
Patrick Pelissier
e9f603fa30
Rename internal calls to my_mpz* to testobj*
2018-05-08 10:40:29 +02:00
Patrick Pelissier
1a064e033b
Rename mympz.h --> test-obj.h
...
as it is used only for testing purpose.
2018-05-08 10:29:51 +02:00
Patrick Pelissier
bc83fe43e5
Remove dependency on GMP, so that it is easier to run the bench suite.
2018-03-29 20:01:45 +02:00
Patrick Pelissier
210e05f7fc
Update copyright to 2018
2018-01-29 20:28:30 +01:00
Patrick Pelissier
6b55f5d4a3
Improve test suite.
2017-09-21 22:37:28 +02:00
Patrick Pelissier
c79626225b
Rewrite M_REDUCE to be much faster.
...
Rewrite M_SEQ to be much faster.
Change interface of M_SEQ as we can easily apply M_MAP / M_MAP2 to further apply macro.
2017-09-20 23:40:22 +02:00
Patrick Pelissier
1fa105f11a
Improve the test suite.
2017-09-18 23:03:05 +02:00
Patrick Pelissier
402c0a86e0
Add test for REDUCE2 & SEQ
2017-09-13 23:50:38 +02:00
Patrick Pelissier
d7c4ca1de5
Add support for global oplist.
...
Global oplists are global macro defined as M_OPL_##type
Add support of global oplist for macro M_EACH & M_LET.
Partial fix #9
2017-09-10 10:04:39 +02:00
Patrick Pelissier
4d9405d564
Improve M_OPLIST_P computation.
2017-09-09 23:36:01 +02:00
Patrick Pelissier
df1a9e9c88
Add M_TEST_DISABLED_METHOD_P
2017-09-06 21:56:45 +02:00
Patrick Pelissier
305c7ed2c1
Add more tests.
2017-06-04 23:44:29 +02:00
Patrick Pelissier
8cfbe56945
Fix issue with M_PARENTHESIS_P
...
Add M_OPLIST_P
2017-06-04 23:43:05 +02:00
Patrick Pelissier
eaa8277f10
Add macro M_CONST_CAST
2017-05-26 12:40:37 +02:00
Patrick Pelissier
dd012a504b
Fix test
2017-04-17 00:19:19 +02:00
Patrick Pelissier
f829dcdfe6
Add more tests.
2017-04-17 00:07:37 +02:00
Patrick Pelissier
fd286bd31c
Add more tests.
2017-04-12 22:43:15 +02:00