4 ms·
Yes! I once started testing a class I had written, only to discover methods I hadn't finished writing yet were working perfectly! It turns out I was accidental
by moyix 11y ago
Yes! I once started testing a class I had written, only to discover methods I hadn't finished writing yet were working perfectly!
It turns out I was accidentally reimplementing a library function, and I had chosen the exact same names and method signatures for the (admittedly small and fairly obvious) class.
- jacquesm 11y agoHehe, I had more or less the opposite of this once. I spent way too much time tracing a function in ever more detail going on the assumption that it must have been the source of the problem. Only... it was never called in the first place, it was a library module that took the call and it was misbehaving...
- Natsu 11y agoJust for the record, my test was a bit off and wasn't hitting the non-existent code at all.