add string concat test to basic.zig from misc.zig!

This means it is passing in stage2!
This commit is contained in:
Jacob G-W 2021-08-22 14:47:19 -04:00
parent 908f722107
commit a360f2bf6c
2 changed files with 4 additions and 4 deletions

View File

@ -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"));
}

View File

@ -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"));
}