tests: Add test for special unicode characters and characters that need padding

This commit is contained in:
EmperorBale 2022-07-15 02:19:28 -07:00 committed by relrelb
parent 95809f8a9b
commit 41bfc028d2
3 changed files with 16 additions and 0 deletions

View File

@ -29,3 +29,13 @@ var input = "!\"£$%^&*()1234567890qwertyuiop[]asdfghjkl;'#\zxcvbnm,./QWERTYUIOP
trace("// escape(\"" + input + "\")");
trace(escape(input));
trace("");
var input = "\x05";
trace("// escape(\"\\x05\")");
trace(escape(input));
trace("");
var input = "😭";
trace("// escape(\"" + input + "\")");
trace(escape(input));
trace("");

View File

@ -16,3 +16,9 @@ test
// escape("!"£$%^&*()1234567890qwertyuiop[]asdfghjkl;'#zxcvbnm,./QWERTYUIOP{}ASDFGHJKL:@~|ZXCVBNM<>?")
%21%22%A3%24%25%5E%26*%28%291234567890qwertyuiop%5B%5Dasdfghjkl%3B%27%23zxcvbnm%2C./QWERTYUIOP%7B%7DASDFGHJKL%3A@%7E%7CZXCVBNM%3C%3E%3F%10
// escape("\x05")
%05
// escape("😭")
%uD83D%uDE2D