28 ms·
On my planet we write those invariants in code, such as CHECK(Color.red(pixel) < 55); Or whatever.
by jeffbee 6y ago
On my planet we write those invariants in code, such as
CHECK(Color.red(pixel) < 55);
Or whatever.
- gruez 6y agoYou mean an assertion? I'm not sure how that would help. The code is still going to crash, and unless you tested for that specific case, it's not going to show up in testing either.