Leonardo
3bb7f241f2
Added missing HeapIter test to the main unit test suit
2020-05-08 20:59:50 -03:00
Leonardo
9f596f7974
Updating heap API and fixing some things
2020-05-08 20:56:01 -03:00
Leonardo
bf3535970e
Added the possibility of running tests from each collection separately
...
Also added CMC_BITSET_WORD_TYPE so that the type of the bitset buffer can be defined with the -D flag
2020-05-07 22:19:09 -03:00
Leonardo
303e3b57b8
Updating hashset iterator API
2020-05-07 00:10:41 -03:00
Leonardo
2cacbc5348
Updating hashmultiset iterator API
2020-05-06 20:43:59 -03:00
Leonardo
fdfb81d08c
Updating hashmultimap iterator API
2020-05-06 14:55:44 -03:00
Leonardo
254bb3eacc
Renamed multiset to hashmultiset
2020-05-05 18:13:17 -03:00
Leonardo
c41ce371d3
Renamed multimap to hashmultimap
2020-05-05 18:00:56 -03:00
Leonardo
b35281b8dc
Renaming bidimap to hashbidimap
2020-05-04 23:02:57 -03:00
Leonardo
c58f3df50a
More added to bitset
2020-05-04 18:19:18 -03:00
Leonardo
7ad2462254
Adding bitset checkpoint
2020-05-01 15:52:37 -03:00
Leonardo
0702b7f51b
Update hashmap tests and its iterator API
2020-04-29 22:40:07 -03:00
Leonardo
9ade952392
Fixing hashtables and added hashmap init and release
2020-04-29 20:08:42 -03:00
Leonardo
5d68dcc538
Fixing imports in tests
2020-04-29 00:39:20 -03:00
Leonardo
3c0ce0a623
Update deque tests and its iterator API
2020-04-28 22:52:01 -03:00
Leonardo
27ac934ab6
Added new functions to deque and changed iterator functions
...
New functions: init, init_custom, release
Added DequeIter unit tests
2020-04-27 20:19:47 -03:00
Leonardo Vencovsky
3d9abc66a7
Formatting some files
2020-04-23 00:03:57 -03:00
Leonardo Vencovsky
af5abff115
Adding more deque tests and valgrind option to tests makefile
...
Also added a nice header for the main unit test
2020-04-23 00:03:17 -03:00
Leonardo Vencovsky
64201cb630
Fixing memory leaks and indexes out of bounds
2020-04-22 18:38:05 -03:00
Leonardo
fe78937150
Replaced unnecessary node struct from intervalheap to a buffer of array[2]
2020-04-22 11:51:05 -03:00
Leonardo
5af021ec0a
Fixing some things with intervalheap and added more tests
2020-04-22 10:08:06 -03:00
Leonardo
2e48a033a0
Refactoring: renaming 'element' to 'value'
2020-04-21 01:38:26 -03:00
Leonardo
980fb6d432
Fixing test.h, fixing warnings and deque tests
2020-04-20 01:15:51 -03:00
Leonardo
181a8999a7
Update deque tests
2020-04-19 13:08:38 -03:00
Leonardo
656c0e3b3a
Added cmc_assert_total, cmc_assert_failed, better-looking unit test and other things
...
Started using functions from futils.h in unit test
Renamed unit tests
2020-04-17 16:29:52 -03:00
Leonardo
277139656e
Fixing missing flag for treemap and treeset
2020-04-16 20:29:49 -03:00
Leonardo
eb13fcad01
Simplified name for functions table ftab_key to fkey and ftab_val to fval
2020-04-14 23:18:56 -03:00
Leonardo
5e13c7ba91
Update travis and fixing tests
2020-04-13 13:10:04 -03:00
Leonardo
7701364f13
Merging tests codecov with main
2020-04-13 12:13:41 -03:00
Leonardo
1dd0f25ff8
Added script that automatically generates code for code coverage
2020-04-12 21:11:37 -03:00
Leonardo
8e73cde6ae
Fast-forward codecov
2020-04-11 14:14:34 -03:00
Leonardo
67590790c4
Documentation for foreach.h, test.h, timer.h and other changes
...
Change in timer.h. Now cmc_timer_stop will calculate the result so goodbye cmc_timer_calc
2020-04-10 22:21:47 -03:00
Leonardo
56326b2dd9
Updating tests for bidimap
2020-04-08 19:35:34 -03:00
Leonardo
4c16cae56d
Added callbacks to treemap and treeset
2020-03-31 15:41:27 -03:00
Leonardo
ee1174d1b5
Added flags to queue, sortedlist and stack
2020-03-29 19:13:39 -03:00
Leonardo
0d665c46d0
Updating tests
2020-03-29 17:44:33 -03:00
Leonardo
2c732dbadf
Added callbacks to multimap and multiset, removed enabled flag and more
...
The enabled flag from the previous commit was removed because it seemed pointless
PFX##_customize functions were changed, now callbacks can be NULL but not allloc_node
Added more code to callback test
Added some missing functions and changed some others
Added more TODO comments of missing code checks or possible improvements
Added more callback guards for set functions
2020-03-28 17:54:31 -03:00
Leonardo
fcb8f3a005
Added enabled flag to cmc_callbacks
2020-03-21 23:39:51 -03:00
Leonardo
701a24f47c
Added callbacks to linkedlist and list
2020-03-20 15:18:12 -03:00
Leonardo
5b8f64b421
Added callbacks to heap and intervaheap, and reworked some min and max functions
2020-03-19 21:46:48 -03:00
Leonardo
cf5ceb9c48
Added callbacks to deque, hashmap and hashset, and fixed some other missing things
2020-03-19 17:58:56 -03:00
Leonardo
4e96d3aba0
Huge changes to bidimap and added callbacks to it
...
Callbacks lost their 'on_' prefix
Bidimap was simply not working properly. Many of its functions have been reworked:
- _update_key_by_val is now _update_key
- _update_val_by_key is now _update_val
- Removed _update_key and _update_val because they just weren't what a bidimap really is about
2020-03-18 16:36:05 -03:00
Leonardo
0089abc84a
Added cor folder and cmc_callbacks is now common to all collections
...
Now every file includes core.h and hashtable-based collections include hashtable.h
The definition of cmc_heap_order has been kept inside heap.h because it is the only collection to use it
2020-03-17 16:10:12 -03:00
Leonardo
9999275ad0
Added flags to treeset and quickfix to treemap unit test
2020-03-16 19:53:02 -03:00
Leonardo
2391729541
Added flags to treemap
2020-03-16 14:30:41 -03:00
Leonardo
ffb03890df
Added flags to stack
2020-03-15 16:42:34 -03:00
Leonardo
b3fa566725
Added flags to sortedlist
2020-03-14 17:39:33 -03:00
Leonardo
db2de0b855
Added flags to queue
2020-03-13 14:29:29 -03:00
Leonardo
f82fb45242
Added flags to multiset and fixing some more
2020-03-13 11:56:32 -03:00
Leonardo
101b839801
Fixing equals functions of list and intervalheap
2020-03-12 14:05:30 -03:00