mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
stage2: move array mult test from basic.zig to misc.zig!
This commit is contained in:
parent
f6d9ac481b
commit
7cdb30ee95
@ -166,3 +166,7 @@ fn fB() []const u8 {
|
||||
test "string concatenation" {
|
||||
try expect(mem.eql(u8, "OK" ++ " IT " ++ "WORKED", "OK IT WORKED"));
|
||||
}
|
||||
|
||||
test "array mult operator" {
|
||||
try expect(mem.eql(u8, "ab" ** 5, "ababababab"));
|
||||
}
|
||||
|
||||
@ -40,10 +40,6 @@ test "constant equal function pointers" {
|
||||
|
||||
fn emptyFn() void {}
|
||||
|
||||
test "array mult operator" {
|
||||
try expect(mem.eql(u8, "ab" ** 5, "ababababab"));
|
||||
}
|
||||
|
||||
test "string escapes" {
|
||||
try expectEqualStrings("\"", "\x22");
|
||||
try expectEqualStrings("\'", "\x27");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user