Re:Rust things I miss in C
by AndrewGaspar on Monday February 19, 2018 @01:18PM
(#16414545)
A pretty reasonable test would be that some function panics on invalid input, in this case by way of integer overflow. This test would pass in a debug build, but could cause unintended, possibly even insecure, behavior in a release build.
Ideally you would run your tests in both debug and release modes, though. :)
Ideally you would run your tests in both debug and release modes, though. :)