commit 3e960cfffea8083b1948ba295d1a85964b5afa25 (tree) parent 0b4bb9b84fddd8fe03fe15e25bd82babb455f2a6 Author: Isaac Freund <ifreund@ifreund.xyz> Date: Fri, 5 Feb 2021 11:46:43 +0100 zig fmt: float literal with exponent Diffstat:
| M | lib/std/zig/parser_test.zig | | | 17 | +++++++++-------- |
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/lib/std/zig/parser_test.zig b/lib/std/zig/parser_test.zig @@ -1435,14 +1435,15 @@ test "zig fmt: nosuspend block" { // \\ // ); //} -//test "zig fmt: float literal with exponent" { -// try testCanonical( -// \\pub const f64_true_min = 4.94065645841246544177e-324; -// \\const threshold = 0x1.a827999fcef32p+1022; -// \\ -// ); -//} -// + +test "zig fmt: float literal with exponent" { + try testCanonical( + \\pub const f64_true_min = 4.94065645841246544177e-324; + \\const threshold = 0x1.a827999fcef32p+1022; + \\ + ); +} + //test "zig fmt: if-else end of comptime" { // try testCanonical( // \\comptime {