Update tests for unicode literals

This commit is contained in:
Alex Beregszaszi
2020-07-27 18:21:17 +01:00
parent 6eb60bc8cd
commit f5f86779b8
18 changed files with 676 additions and 15 deletions
@@ -1,9 +1,14 @@
contract C {
function f() public pure returns (string memory) {
return "😃, 😭, and 😈";
return unicode"😃, 😭, and 😈";
}
function g() public pure returns (string memory) {
return unicode"😃, 😭,\
and 😈";
}
}
// ====
// compileViaYul: also
// ----
// f() -> 0x20, 0x14, "\xf0\x9f\x98\x83, \xf0\x9f\x98\xad, and \xf0\x9f\x98\x88"
// g() -> 0x20, 0x14, "\xf0\x9f\x98\x83, \xf0\x9f\x98\xad, and \xf0\x9f\x98\x88"