mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
add string concat test to basic.zig from misc.zig!
This means it is passing in stage2!
This commit is contained in:
parent
908f722107
commit
a360f2bf6c
@ -162,3 +162,7 @@ fn fA() []const u8 {
|
||||
fn fB() []const u8 {
|
||||
return "b";
|
||||
}
|
||||
|
||||
test "string concatenation" {
|
||||
try expect(mem.eql(u8, "OK" ++ " IT " ++ "WORKED", "OK IT WORKED"));
|
||||
}
|
||||
|
||||
@ -40,10 +40,6 @@ test "constant equal function pointers" {
|
||||
|
||||
fn emptyFn() void {}
|
||||
|
||||
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"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user