zig/std/math
Andrew Kelley c2db077574
std.debug.assert: remove special case for test builds
Previously, std.debug.assert would `@panic` in test builds,
if the assertion failed. Now, it's always `unreachable`.

This makes release mode test builds more accurately test
the actual code that will be run.

However this requires tests to call `std.testing.expect`
rather than `std.debug.assert` to make sure output is correct.

Here is the explanation of when to use either one, copied from
the assert doc comments:

Inside a test block, it is best to use the `std.testing` module
rather than assert, because assert may not detect a test failure
in ReleaseFast and ReleaseSafe mode. Outside of a test block, assert
is the correct function to use.

closes #1304
2019-02-08 18:23:38 -05:00
..
big std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
complex std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
acos.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
acosh.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
asin.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
asinh.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
atan.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
atan2.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
atanh.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
cbrt.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
ceil.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
copysign.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
cos.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
cosh.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
exp.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
exp2.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
expm1.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
expo2.zig syntax: functions require return type. remove `->` 2018-01-25 04:10:11 -05:00
fabs.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
floor.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
fma.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
frexp.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
hypot.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
ilogb.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
index.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
inf.zig add std.math f16 inf support 2018-06-30 01:58:17 +02:00
isfinite.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
isinf.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
isnan.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
isnormal.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
ln.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
log.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
log1p.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
log2.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
log10.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
modf.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
nan.zig add std.math f16 nan support 2018-06-30 01:58:17 +02:00
pow.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
powi.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
round.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
scalbn.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
signbit.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
sin.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
sinh.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
sqrt.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
tan.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
tanh.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
trunc.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00