Test With The Same Name As A Function Error Message
This is what it looks like when I made a test that had the same name as the function I was trying to test.
This is what my code looked like
rust
The thing that threw me was the message saying the function expected zero arguments but I was passing one. That's because the test function doesn't take arguments even though my actual function does. That's what finally led me to figure out what was up.
The solution was to rename the test function to something else (e.g. [TODO: Code shorthand span ] )