Patrick Pelissier
d548117538
Make M*LIB stricter for INIT_MOVE operator:
...
* either the default INIT_MOVE operator works ('=')
* either an INIT_MOVE method is defined
* or it is disabled.
As a consequence, fix usage of testobj_t and mpz_t in the repository
The emulation layer of INIT_MOVE using INIT_SET+CLEAR is removed:
it wasn't working correctly with the local memory context
(INIT_MOVE doesn't need any local memory context to work,
whereas INIT_SET/CLEAR does)
Remove macro M_DO_INIT_MOVE as it is now useless and uses M_CALL_INIT_MOVE.
The INIT_MOVE default method no longer sets the old 'src' to '0':
it was useless (it doesn't catch any error) and complicates compiler parsing.
Fix POD & A1 & CSTR & classic oplists definition (missing INIT_MOVE operators).
2025-05-07 21:02:24 +02:00
Patrick Pelissier
6d621703eb
Copyright go to 2025 year
2025-03-01 11:03:38 +01:00
Patrick Pelissier
52b58c5a51
Happy new year 2024
2024-01-19 21:37:47 +01:00
Patrick Pelissier
ccaa54d2a5
Improve coverage of the tet suite
2023-04-06 21:55:21 +02:00
Patrick Pelissier
d02de75487
Add control that all initialized testobj are properly cleared at the end of the test suite
2023-03-12 20:29:58 +01:00
Patrick Pelissier
a2ae209992
Happy new year
2023-01-02 12:57:41 +01:00
Patrick Pelissier
c0abcc6d60
Add tests for new emplace functions
2022-04-22 22:51:36 +02:00
Patrick Pelissier
e1abf0528c
Rename M_DEFAULT_OPLIST in M_BASIC_OPLIST (cleaner name)
2022-04-08 22:54:29 +02:00
Patrick Pelissier
19b01b404d
Migrate to 2022
2022-03-12 20:25:45 +01:00
Patrick Pelissier
ef8dcda196
Add tests for deque _remove
2021-11-02 18:32:26 +01:00
Patrick Pelissier
2695cd6f3e
Rename DEQUE _clean in _reset to avoid confusing _clean & _clear functions. See #97
2021-10-28 17:40:56 +02:00
Patrick Pelissier
4409f613e0
Add test more complete cases for the last issue
2021-10-09 10:11:27 +02:00
Patrick Pelissier
e52f3b8b30
Add more test cases for deque _next / _previous
2021-10-07 21:47:49 +02:00
Patrick Pelissier
e514d74f43
Update test to be more pertinent
2021-04-04 22:28:32 +02:00
Patrick Pelissier
165ec09061
Rename user customizable macros
...
to be compliant with other
and clearer that they can be customized.
2021-02-20 00:10:26 +01:00
Patrick Pelissier
517da1b999
Rename generated internal functions
...
to avoid "poluting" userspace naming.
2021-02-13 11:45:05 +01:00
Patrick Pelissier
25fe26deaa
Happy new year
2021-01-13 20:18:01 +01:00
Patrick Pelissier
a4fa70a478
Add macro DEQUE_DEF_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
c80fb7bebe
Add test for M_ENUM_OPLIST (in particular I/O tests)
2020-06-24 21:13:43 +02:00
Patrick Pelissier
d27c448a94
Fix some warnings with MSVS
...
for the test suite.
2020-06-21 23:52:12 +02:00
Patrick Pelissier
b27f490acb
Fix typing
2020-06-14 00:18:26 +02:00
Patrick Pelissier
4ab3a3605b
Fix -Wsign-conversion warnings in tests.
2020-06-13 19:43:52 +02:00
Patrick Pelissier
4f7b0b9455
Happy new year 2020
2020-01-04 15:41:06 +01:00
Patrick Pelissier
8b3a4a802c
Happy new year!
2019-01-02 18:12:07 +01:00
Patrick Pelissier
608a929fcb
Added another test case for _get method for DEQUE container.
2018-10-21 22:40:56 +02:00
Patrick Pelissier
4bf045e3d6
Make INIT conditional for DEQUE containers.
2018-10-21 22:31:22 +02:00
Patrick Pelissier
ff098c91f4
Add _capacity for deque
2018-10-07 09:05:09 +02:00
Patrick Pelissier
9c31f8aa92
Complete test to show failure of _init_move for deque.
2018-07-31 23:11:26 +02:00
Patrick Pelissier
f1a52439bb
Add more tests.
2018-07-30 22:42:33 +02:00
Patrick Pelissier
0fda117ffe
Add push/pop_front/back_move methods.
2018-06-27 20:10:42 +02:00
Patrick Pelissier
680a850618
Add test of _in_str, _out_str, _get_str and _parse_str
2018-05-09 21:48:42 +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
20d549b5e1
Rename MYMPZ_OPLIST into MY_MPZ_OPLIST
2018-04-14 08:11:14 +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
ff3964e2eb
Factorization of the mympz type
2018-02-21 22:06:45 +01:00
Patrick Pelissier
958936319f
Activate test
2018-02-21 21:51:54 +01:00
Patrick Pelissier
d146ea6a63
Add new test (disabled)
2018-02-20 22:57:58 +01:00
Patrick Pelissier
adcacf3cf9
Improve coverage
2018-02-05 22:04:50 +01:00
Patrick Pelissier
210e05f7fc
Update copyright to 2018
2018-01-29 20:28:30 +01:00
Patrick Pelissier
bbb1831c5f
Add missing exit(0)
2017-12-31 11:42:56 +01:00
Patrick Pelissier
755f3a77f3
Complete test suite for dequeu.
2017-08-20 21:53:52 +02:00
Patrick Pelissier
7ddb7e63b7
Improve coverage.
2017-08-19 20:16:32 +02:00
Patrick Pelissier
25d553f96e
Add more tests.
2017-08-19 19:51:21 +02:00
Patrick Pelissier
519a74751c
Add more tests for deque
2017-08-19 18:40:54 +02:00
Patrick Pelissier
eea88741ed
Add more functions.
2017-08-19 16:44:17 +02:00
Patrick Pelissier
49e92ba634
Add coverage computation.
2017-08-19 16:42:49 +02:00
Patrick Pelissier
e0abba3452
Update
2017-08-05 18:24:42 +02:00
Patrick Pelissier
07c251e5ca
Add test suite for deque
2017-08-05 18:21:14 +02:00