1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Test emoji

This commit is contained in:
Joshua Peek 2014-12-11 12:25:35 -08:00
parent 26665f14ea
commit 04b98ea801

View file

@ -71,6 +71,8 @@ class TestExecJS < Test
"'café'" => "café", "'café'" => "café",
'"☃"' => "", '"☃"' => "",
'"\u2603"' => "", '"\u2603"' => "",
"'\u{1f604}'".encode("UTF-8") => "\u{1f604}".encode("UTF-8"), # Smiling emoji
"'\u{1f1fa}\u{1f1f8}'".encode("UTF-8") => "\u{1f1fa}\u{1f1f8}".encode("UTF-8"), # US flag
'"\\\\"' => "\\" '"\\\\"' => "\\"
}.each_with_index do |(input, output), index| }.each_with_index do |(input, output), index|
define_method("test_exec_string_#{index}") do define_method("test_exec_string_#{index}") do