leo/tests/compiler/stdlib/strings.leo

15 lines
272 B
Plaintext
Raw Normal View History

2021-09-10 15:55:07 +03:00
// namespace: Compile
// expectation: Pass
// inputs:
// - hello.in: |
// [main]
// hello: [char; 5] = "hello";
// [registers]
// r0: bool = true;
function main(hello: [char; 5]) -> bool {
let hello2: string = "hello";
return hello == hello2;
}