Commit Graph

24 Commits

Author SHA1 Message Date
6088895ad0 addition: create slice and unsafe, also destroy 2026-04-20 08:43:58 -06:00
04a52e3455 addtition: Added function declarations 2026-04-19 21:57:28 -06:00
4b2389ad62 feature: Added structure for ArrayListSlices 2026-04-19 12:32:11 -06:00
1ca3defacc test: added test for reserve 2026-04-18 20:34:42 -06:00
8fdd5f3981 test: added test for resize 2026-04-18 20:15:18 -06:00
532a84fa8f test: added tests for clear 2026-04-18 19:22:17 -06:00
2d66b35e0e test: added tests for set 2026-04-17 11:07:25 -06:00
b76c52cb72 test: added test for remove at 2026-04-17 08:21:26 -06:00
462669dfa1 test: added test for push front 2026-04-17 07:47:02 -06:00
cc7de39dd6 test: added tests for pop_back 2026-04-17 07:05:13 -06:00
a3db7f376f test: added tests for insert 2026-04-16 21:30:16 -06:00
b55432448e test: added test for push_front 2026-04-16 20:56:48 -06:00
789fbf7d4c test: Added push_back tests
All working
2026-04-16 10:42:01 -06:00
1e7e6f7b8d test: Added tests made for state consistency
Also changed a few things like usin asser_null and assert_non_null
--didn't knew they existed in cmocka, or at least forgot-- for better
clarity and readability.
2026-04-16 08:42:01 -06:00
7662af09f8 test: Added test for init and destroy
Also changed a few things like destroy tanking a double pointer so that
is more secure and making sure before hand that capacity is not that
ridiculous of a size, still, shit can get pass but generally is fine
2026-04-15 17:17:54 -06:00
1d7f9676ec addition: resize and reserve, not tested 2026-04-15 10:01:27 -06:00
0fc64c2d8d addition: set and get, not tested 2026-04-15 07:38:04 -06:00
520dd9d52e addition: added pop_back, remove_at, pop_front
Same thing as with addtition, not tested and decided O(n)
2026-04-15 07:15:35 -06:00
fa0d09c3d7 addition: insert, push_back and push_front
Decided that push front and insert will be O(n) because it moves
everything one space ahead, could do something like a buffer ring but i
think is too much, maybe in the future i do change it but i'm not sure,
for now it just moves everything, also, i havne't tested them and i'm
not sure the for loop meant for moving everything actually works.
2026-04-15 06:50:04 -06:00
4ea062fd60 addition/refactor: Made ADT design and added grow/shrink
So, added private functions made to grow and shrink the array in a
multiple of 2, 2 as a factro is fine, at least that is Rust does it that
way. Also changed the design to ADT, forgot i liked that, probably will
be changing that to apply also to my Arena implementation, i will see if
fits --probably--.
2026-04-14 20:30:02 -06:00
cb78e9467b addition: size, is empty and capacity 2026-04-14 19:38:56 -06:00
f6fedcb9c2 addition: destroy and clear 2026-04-14 19:33:15 -06:00
39022d53ff addition: Added basic header and structure 2026-04-13 17:55:45 -06:00
12197bfbbd Initial commit 2026-04-13 11:16:58 -06:00