aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-15 17:04:23 -0400
committerGitHub <noreply@github.com>2022-03-15 17:04:23 -0400
commitea4d2759a51f2805e8345fe85500feefef3f504c (patch)
tree575aa81d0fa002c6f9396c62b8f3c4fb5774c1a4 /test
parent6de8b4bc3d105c15cd473c5bf100db4c9328dd54 (diff)
parent71ca0b176f7a643ef7606d12f4001b445a115092 (diff)
downloadzig-ea4d2759a51f2805e8345fe85500feefef3f504c.tar.gz
zig-ea4d2759a51f2805e8345fe85500feefef3f504c.zip
Merge pull request #11180 from jmc-88/cbe3
CBE: amending an incorrect test name, plus two small fixes
Diffstat (limited to 'test')
-rw-r--r--test/behavior/bugs/2114.zig6
1 files 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);