From 04b98ea801c7010f80d82cc820a2839054dffc5a Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Thu, 11 Dec 2014 12:25:35 -0800 Subject: [PATCH] Test emoji --- test/test_execjs.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_execjs.rb b/test/test_execjs.rb index 295f1c8..becda22 100644 --- a/test/test_execjs.rb +++ b/test/test_execjs.rb @@ -71,6 +71,8 @@ class TestExecJS < Test "'café'" => "café", '"☃"' => "☃", '"\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| define_method("test_exec_string_#{index}") do