diff --git a/integration/stdio_library_tests.rb b/integration/stdio_library_tests.rb index 3b68abb..da1fb33 100644 --- a/integration/stdio_library_tests.rb +++ b/integration/stdio_library_tests.rb @@ -50,7 +50,7 @@ class StdioLibraryTester < MiniTest::Unit::TestCase foorth_output(' 65 emit', "A") foorth_output('126 emit', "~") - foorth_alt_output('255 emit', [195, 191]) + foorth_utf8_output('255 emit', [195, 191]) end end diff --git a/integration/support/foorth_testing.rb b/integration/support/foorth_testing.rb index 9020f28..1ad7a27 100644 --- a/integration/support/foorth_testing.rb +++ b/integration/support/foorth_testing.rb @@ -82,11 +82,11 @@ module XfOOrthTestExtensions (!stdout || x) && (!stderr || y) end - #When the source is executed, does the stdout match? Special! + #When the source is executed, does the stdout match? Forces UTF-8 encoding. #
Parameters: #* source - A string containing fOOrth source code to execute. - #* stdout_output - An array of bytes expected from the console. - def foorth_alt_output(source, stdout_output) + #* stdout_output - An array of bytes expected for the console. + def foorth_utf8_output(source, stdout_output) vm = Thread.current[:vm] assert_foorth_output(stdout_output) do