mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 09:25:11 +00:00
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
7 lines
281 B
Zig
7 lines
281 B
Zig
const expect = @import("std").testing.expect;
|
|
|
|
test "Peer type resolution with string literals and unknown length u8 pointers" {
|
|
expect(@TypeOf("", "a", @as([*:0]const u8, "")) == [*:0]const u8);
|
|
expect(@TypeOf(@as([*:0]const u8, "baz"), "foo", "bar") == [*:0]const u8);
|
|
}
|