zig/std/special
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
..
compiler_rt std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
init-exe New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
init-lib std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
bootstrap_lib.zig support building static libraries 2018-10-09 13:15:14 -04:00
bootstrap.zig implement Thread Local Storage on Windows 2019-02-06 18:32:41 -05:00
build_runner.zig fix incorrect --help text 2018-11-19 13:26:35 -05:00
builtin.zig remove @minValue,@maxValue; add std.math.minInt,maxInt 2018-10-26 15:01:51 -04:00
panic.zig fixups 2018-12-26 15:25:54 -05:00
test_runner.zig rename error.skip to error.SkipZigTest 2018-07-21 23:43:43 -04:00