4 ms·
Do you mean test explicitly and fail graciously? So even test over false inputs, but check that the code fails with the right exit?
by wjnc 10y ago
Do you mean test explicitly and fail graciously? So even test over false inputs, but check that the code fails with the right exit?
- emodendroket 10y agoI mean if you have a method whose definition is literally just "return 'abc'" and then you have a test assert that that method returns 'abc', knock it off.
- jdmichal 10y agoI call those types of test, "testing that the compiler works." Not really something you should be testing! It also applies to testing code that is just a wrapper around third-party libraries.