Skip to content

Instantly share code, notes, and snippets.

@mikdusan
Created March 27, 2023 23:30
Show Gist options
  • Save mikdusan/bcb0596a78859d05dee637eee1908a30 to your computer and use it in GitHub Desktop.
Save mikdusan/bcb0596a78859d05dee637eee1908a30 to your computer and use it in GitHub Desktop.
rm -fr zig-cache; zig test -Itest test/behavior.zig
lib/std/debug.zig:281:14: error: reached unreachable code
if (!ok) unreachable; // assertion failure
^~~~~~~~~~~
lib/std/math.zig:133:11: note: called from here
assert(tolerance >= 0);
~~~~~~^~~~~~~~~~~~~~~~
test/behavior/floatop.zig:382:36: note: called from here
try expect(math.approxEqAbs(f16, @log(a), 1, epsilon));
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
test/behavior/floatop.zig:375:25: note: called from here
comptime try testLog();
~~~~~~~^~
test/behavior/muladd.zig:87:30: error: type 'f128' cannot represent float value '5.5'
try expect(@mulAdd(f128, a, b, c) == 20);
^
test/behavior/muladd.zig:79:31: note: called from here
comptime try testMulAdd128();
~~~~~~~~~~~~~^~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment