Closed Anacardo89 closed 7 months ago
Nevermind, i just realized i was calling a different function. Typical, you spend 3 hours looking for something and realize the mistake immediately after you post it so the internet can see it in all its glory. Be like me folks.
This happens consistently in the code i'm about to provide, it's a linked list implementation. This issue is not reproduced in the std library.
Description
i have a prepend and an insert implementation, which in fact just calls prepend for the first 2 iterations: i test prepend adding 3 values to the list and it grabs all the values just fine, when i test the insert however it says it expects a dereference to a reference, which i believe is the thing itself so it should just pass the test? 1 - Any value added after the first will fail with this same expectation, but the first value can be asserted correctly with no problems. 2 - the values that cannot be asserted correctly do pass if asserted against the dereference of the type 3 - in the std library behaviour is consistent in which calls to insert will always be asserted correctly
Step To Reproduce
insert + tests:
Prepend + tests:
std library
The structs in question so you can fully reproduce it:
Expected behavior
Tl;Dr: tests not passing because of weird type magic same tests pass in std library tests should also pass without need for weird type magic
Actual behavior