Fabiola De la Cueva Profile picture
@Delacorllc founder, code janitor, #DQMH lead software architect, Certified LabVIEW Architect, CLED, CPI, potter LabVIEW?... we draw instead of type our apps
Apr 30, 2020 5 tweets 2 min read
#UnitTesting and #TDD continue to deliver

Yesterday, I was fighting a pretty nasty bug, all the unit tests passed

I knew there was a corner case not covered by the unit tests but what was it?

Reviewing my assumptions, the key: hw was not exactly sync
Need to test for data 1/ Not aligned, I added new unit test for that assumption, of course the test failed

Now, I just needed to modify the code to make that test pass and not make the rest of the tests fail

The best part, i could work with very small and manageable arrays (instead of the 2GB array) 2/