tests: Add test for special unicode characters and characters that need padding
This commit is contained in:
parent
95809f8a9b
commit
41bfc028d2
|
@ -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("");
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue