test: Make sure we have unicode in the SDK tests (#83)

Related to https://github.com/extism/extism/pull/82

Ensures we have unicode inputs in our SDK tests. We should probably get
unicode in the output as well
This commit is contained in:
Benjamin Eckel
2022-11-20 13:22:48 -06:00
committed by GitHub
parent 58ad4ce6e2
commit b1ca2f398d
3 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ class TestExtism < Minitest::Test
assert_equal res["count"], 7
res = JSON.parse(plugin.call("count_vowels", "this is a test thrice"))
assert_equal res["count"], 6
res = JSON.parse(plugin.call("count_vowels", "🌎hello🌎world🌎"))
assert_equal res["count"], 3
end
end