2021-05-20 21:30:12 +03:00
|
|
|
/*
|
|
|
|
namespace: Compile
|
|
|
|
expectation: Pass
|
|
|
|
input_file:
|
|
|
|
- inputs/string.in
|
2021-05-23 00:57:05 +03:00
|
|
|
- inputs/weird.in
|
2021-05-20 21:30:12 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
function main(s1: [char; 13], s2: [char; 4]) -> bool {
|
2021-05-23 04:15:07 +03:00
|
|
|
let hello: [char; 13] = "Hello, World!";
|
|
|
|
let part1 = "Good";
|
|
|
|
let part2 = " dog!";
|
|
|
|
let concat: [char; 9] = [...part1, ...part2];
|
2021-06-17 22:47:19 +03:00
|
|
|
let x = false;
|
|
|
|
x = "test1" == "test2";
|
2021-05-23 04:15:07 +03:00
|
|
|
return hello == s1 && "nope" != s2 && "es" == s2[1..3] && concat == "Good dog!";
|
2021-05-20 21:30:12 +03:00
|
|
|
}
|