zig/test/behavior/duplicated_test_names.zig

18 lines
218 B
Zig

const Namespace = struct {
test "thingy" {}
};
fn thingy(a: usize, b: usize) usize {
return a + b;
}
comptime {
_ = Namespace;
}
test "thingy" {}
test thingy {
if (thingy(1, 2) != 3) unreachable;
}