From 9b5737b5a6c6dab61917d17ce9eec35e5978942b Mon Sep 17 00:00:00 2001 From: Daniele Cocca Date: Sun, 13 Mar 2022 11:52:58 +0000 Subject: [PATCH] s/testClz/testCtz/g The test name here was likely the result of a bad copy-paste, as the test code is actually testing for trailing zeroes, not leading zeroes. --- test/behavior/bugs/2114.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/behavior/bugs/2114.zig b/test/behavior/bugs/2114.zig index 1fc7016f44..5a71c92e8e 100644 --- a/test/behavior/bugs/2114.zig +++ b/test/behavior/bugs/2114.zig @@ -7,11 +7,11 @@ fn ctz(x: anytype) usize { } test "fixed" { - try testClz(); - comptime try testClz(); + try testCtz(); + comptime try testCtz(); } -fn testClz() !void { +fn testCtz() !void { try expect(ctz(@as(u128, 0x40000000000000000000000000000000)) == 126); try expect(math.rotl(u128, @as(u128, 0x40000000000000000000000000000000), @as(u8, 1)) == @as(u128, 0x80000000000000000000000000000000)); try expect(ctz(@as(u128, 0x80000000000000000000000000000000)) == 127);