mirror of
https://github.com/PeterCamilleri/fOOrth
synced 2024-11-16 07:47:56 +01:00
Updated the naming of the UTF-8 stdout test.
This commit is contained in:
parent
470f407c5a
commit
a546c97766
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue