1#unittest { 2 name: "String escaping cases."; 3 error: NONE; 4 result: true; 5}; 6 7func main() { 8 // hex escape 9 var s1 = "Hello\x20World"; 10 var s2 = "Hello World"; 11 var b1 = (s1 == s2); 12 13 // c-like escape 14 var s3 = "Hello\tWorld"; 15 var s4 = "Hello World"; 16 var b2 = (s3 == s4); 17 18 // UTF-8 4 characters escape 19 var s5 = "Hello \U0001F601 World"; 20 var s6 = "Hello World"; 21 var b3 = (s5 == s6); 22 23 return (b1 && b2 && b3) 24}