Updated the naming of the UTF-8 stdout test.

This commit is contained in:
Peter Camilleri 2014-11-26 21:43:52 -05:00
parent 470f407c5a
commit a546c97766
2 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ class StdioLibraryTester < MiniTest::Unit::TestCase
foorth_output(' 65 emit', "A") foorth_output(' 65 emit', "A")
foorth_output('126 emit', "~") foorth_output('126 emit', "~")
foorth_alt_output('255 emit', [195, 191]) foorth_utf8_output('255 emit', [195, 191])
end end
end end

View file

@ -82,11 +82,11 @@ module XfOOrthTestExtensions
(!stdout || x) && (!stderr || y) (!stdout || x) && (!stderr || y)
end end
#When the source is executed, does the stdout match? Special! #When the source is executed, does the stdout match? Forces UTF-8 encoding.
#<br>Parameters: #<br>Parameters:
#* source - A string containing fOOrth source code to execute. #* source - A string containing fOOrth source code to execute.
#* stdout_output - An array of bytes expected from the console. #* stdout_output - An array of bytes expected for the console.
def foorth_alt_output(source, stdout_output) def foorth_utf8_output(source, stdout_output)
vm = Thread.current[:vm] vm = Thread.current[:vm]
assert_foorth_output(stdout_output) do assert_foorth_output(stdout_output) do