summaryrefslogtreecommitdiff
path: root/spec/functions/keys_spec.rb
diff options
context:
space:
mode:
authorPaula McMaw <paula@puppet.com>2017-03-03 15:25:53 +0000
committerPaula McMaw <paula@puppet.com>2017-03-03 15:33:37 +0000
commit2f463600c2c0b6ac95ec71d3e5b17d1b2abdcd22 (patch)
tree68ec310d43b889a5bb5ea7c9a551d4dd299ef1d0 /spec/functions/keys_spec.rb
parent2fa8b2b6387aa59d8cc10e521e069e02477a186b (diff)
(FM-6063) - Unit tests for high effort functions
Diffstat (limited to 'spec/functions/keys_spec.rb')
-rwxr-xr-xspec/functions/keys_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functions/keys_spec.rb b/spec/functions/keys_spec.rb
index 2e009dc..fc7d6d8 100755
--- a/spec/functions/keys_spec.rb
+++ b/spec/functions/keys_spec.rb
@@ -16,4 +16,9 @@ describe 'keys' do
result = subject.call([{ 'key1' => 'value1', 'key2' => 'value2' }])
expect(result).to match_array(['key1', 'key2'])
end
+
+ it 'should run with UTF8 and double byte characters' do
+ result = subject.call([{ 'ҝểү' => '√ẳŀμệ', 'キー' => '値' }])
+ expect(result).to match_array(['ҝểү', 'キー'])
+ end
end