From a546c97766fe8ff6769064a01f81672977c2e64f Mon Sep 17 00:00:00 2001 From: Peter Camilleri Date: Wed, 26 Nov 2014 21:43:52 -0500 Subject: [PATCH] Updated the naming of the UTF-8 stdout test. --- integration/stdio_library_tests.rb | 2 +- integration/support/foorth_testing.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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