diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-23 14:04:52 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-23 14:04:52 -0400 |
| commit | 3e9697bb35267973554155cedc2e593bd4519dd8 (patch) | |
| tree | 86868b584d74643e091c2858bfd3f4425264ae26 /test | |
| parent | 14d416f83b4dabeb714d7001f6efa4fcbac180d5 (diff) | |
| download | zig-3e9697bb35267973554155cedc2e593bd4519dd8.tar.gz zig-3e9697bb35267973554155cedc2e593bd4519dd8.zip | |
remove octal and hex floats from the language
closes #2093
This is technically a breaking change but I would be
surprised if anyone was actually using this feature.
Diffstat (limited to 'test')
| -rw-r--r-- | test/compare_output.zig | 10 | ||||
| -rw-r--r-- | test/stage1/behavior/math.zig | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/test/compare_output.zig b/test/compare_output.zig index c2b4640239..72f4e223aa 100644 --- a/test/compare_output.zig +++ b/test/compare_output.zig @@ -215,13 +215,6 @@ pub fn addCases(cases: *tests.CompareOutputContext) void { \\ _ = c.printf(c"0x103.70p-5: %.013a\n", \\ f64(0x103.70p-5)); \\ - \\ _ = c.printf(c"\n"); - \\ - \\ _ = c.printf(c"0b10100.00010e0: %.013a\n", - \\ f64(0b10100.00010e0)); - \\ _ = c.printf(c"0o10700.00010e0: %.013a\n", - \\ f64(0o10700.00010e0)); - \\ \\ return 0; \\} , @@ -260,9 +253,6 @@ pub fn addCases(cases: *tests.CompareOutputContext) void { \\0x103.70p+5: 0x1.0370000000000p+13 \\0x103.70p-5: 0x1.0370000000000p+3 \\ - \\0b10100.00010e0: 0x1.4100000000000p+4 - \\0o10700.00010e0: 0x1.1c00010000000p+12 - \\ ); cases.add("order-independent declarations", diff --git a/test/stage1/behavior/math.zig b/test/stage1/behavior/math.zig index 5d10887d32..a2db2dcca8 100644 --- a/test/stage1/behavior/math.zig +++ b/test/stage1/behavior/math.zig @@ -597,8 +597,3 @@ test "vector integer addition" { S.doTheTest(); comptime S.doTheTest(); } - -test "binary and octal float literals" { - expect(0b10100.00010e0 == 0x1.4100000000000p+4); - expect(0o10700.00010e0 == 0x1.1c00010000000p+12); -} |
