zig/test
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
..
stage1 std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
stage2 fix race conditions in self-hosted compiler; add test 2018-07-24 21:28:54 -04:00
standalone std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
assemble_and_link.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
build_examples.zig disable C ABI tests on macos due to LLD deficiency 2018-10-06 00:06:36 -04:00
cli.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
compare_output.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
compile_errors.zig thread local storage working for linux x86_64 2019-02-06 13:48:04 -05:00
gen_h.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
runtime_safety.zig fix using the result of @intCast to u0 2019-02-07 16:02:45 -05:00
tests.zig fixups, and modify std.mem.join and std.os.path.resolve API 2019-02-07 00:42:41 -05:00
translate_c.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00