mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Test emoji
This commit is contained in:
parent
26665f14ea
commit
04b98ea801
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue