Renamed "echo-stdout.rb" and "echo-stderr.rb"

to get automatic addition of "ruby -S" on Windows.
This commit is contained in:
Johan Holmberg 2011-11-04 23:12:48 +01:00
parent 892dc530c5
commit 21411e4a87
3 changed files with 20 additions and 20 deletions

View File

@ -42,14 +42,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_equal_INCORRECT_EMPTY") do define_method("test_#{stdxxx}_equal_INCORRECT_EMPTY") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello world' do", "cmd 'echo_#{stdxxx}.rb hello world' do",
" #{stdxxx}_equal ''", " #{stdxxx}_equal ''",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello world", "### echo_#{stdxxx}.rb hello world",
"--- ERROR: wrong #{stdxxx}", "--- ERROR: wrong #{stdxxx}",
"--- actual: hello world", "--- actual: hello world",
"--- expect: [[empty]]", "--- expect: [[empty]]",
@ -82,14 +82,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_equal_INCORRECT_NO_LINES") do define_method("test_#{stdxxx}_equal_INCORRECT_NO_LINES") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello world' do", "cmd 'echo_#{stdxxx}.rb hello world' do",
" #{stdxxx}_equal []", " #{stdxxx}_equal []",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello world", "### echo_#{stdxxx}.rb hello world",
"--- ERROR: wrong #{stdxxx}", "--- ERROR: wrong #{stdxxx}",
"--- actual: hello world", "--- actual: hello world",
"--- expect: [[empty]]", "--- expect: [[empty]]",
@ -104,14 +104,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_equal_CORRECT_1_LINE") do define_method("test_#{stdxxx}_equal_CORRECT_1_LINE") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello world' do", "cmd 'echo_#{stdxxx}.rb hello world' do",
" #{stdxxx}_equal [ 'hello world' ]", " #{stdxxx}_equal [ 'hello world' ]",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello world", "### echo_#{stdxxx}.rb hello world",
] ]
end end
end end
@ -145,14 +145,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_equal_CORRECT_2_LINES") do define_method("test_#{stdxxx}_equal_CORRECT_2_LINES") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello && echo-#{stdxxx}.rb world' do", "cmd 'echo_#{stdxxx}.rb hello && echo_#{stdxxx}.rb world' do",
" #{stdxxx}_equal [ 'hello', 'world' ]", " #{stdxxx}_equal [ 'hello', 'world' ]",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello && echo-#{stdxxx}.rb world", "### echo_#{stdxxx}.rb hello && echo_#{stdxxx}.rb world",
] ]
end end
end end
@ -189,14 +189,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_not_equal_CORRECT_EMPTY") do define_method("test_#{stdxxx}_not_equal_CORRECT_EMPTY") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello' do", "cmd 'echo_#{stdxxx}.rb hello' do",
" #{stdxxx}_not_equal ''", " #{stdxxx}_not_equal ''",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello", "### echo_#{stdxxx}.rb hello",
] ]
end end
end end
@ -229,14 +229,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_not_equal_CORRECT_NO_LINES") do define_method("test_#{stdxxx}_not_equal_CORRECT_NO_LINES") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello' do", "cmd 'echo_#{stdxxx}.rb hello' do",
" #{stdxxx}_not_equal []", " #{stdxxx}_not_equal []",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello", "### echo_#{stdxxx}.rb hello",
] ]
end end
end end
@ -268,14 +268,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_not_equal_CORRECT_1_LINE") do define_method("test_#{stdxxx}_not_equal_CORRECT_1_LINE") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb not hello world' do", "cmd 'echo_#{stdxxx}.rb not hello world' do",
" #{stdxxx}_not_equal [ 'hello world' ]", " #{stdxxx}_not_equal [ 'hello world' ]",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb not hello world", "### echo_#{stdxxx}.rb not hello world",
] ]
end end
end end
@ -286,14 +286,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_not_equal_INCORRECT_1_LINE") do define_method("test_#{stdxxx}_not_equal_INCORRECT_1_LINE") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello world' do", "cmd 'echo_#{stdxxx}.rb hello world' do",
" #{stdxxx}_not_equal [ 'hello world' ]", " #{stdxxx}_not_equal [ 'hello world' ]",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello world", "### echo_#{stdxxx}.rb hello world",
"--- ERROR: wrong #{stdxxx}", "--- ERROR: wrong #{stdxxx}",
"--- actual: hello world", "--- actual: hello world",
"--- expect: hello world", "--- expect: hello world",
@ -308,14 +308,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_not_equal_CORRECT_2_LINES") do define_method("test_#{stdxxx}_not_equal_CORRECT_2_LINES") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello world' do", "cmd 'echo_#{stdxxx}.rb hello world' do",
" #{stdxxx}_not_equal [ 'hello', 'world' ]", " #{stdxxx}_not_equal [ 'hello', 'world' ]",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello world", "### echo_#{stdxxx}.rb hello world",
] ]
end end
end end
@ -326,14 +326,14 @@ class CMDTEST_stdxxx_equal < Cmdtest::Testcase
define_method("test_#{stdxxx}_not_equal_INCORRECT_2_LINES") do define_method("test_#{stdxxx}_not_equal_INCORRECT_2_LINES") do
create_CMDTEST_foo [ create_CMDTEST_foo [
"cmd 'echo-#{stdxxx}.rb hello && echo-#{stdxxx}.rb world' do", "cmd 'echo_#{stdxxx}.rb hello && echo_#{stdxxx}.rb world' do",
" #{stdxxx}_not_equal [ 'hello', 'world' ]", " #{stdxxx}_not_equal [ 'hello', 'world' ]",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo-#{stdxxx}.rb hello && echo-#{stdxxx}.rb world", "### echo_#{stdxxx}.rb hello && echo_#{stdxxx}.rb world",
"--- ERROR: wrong #{stdxxx}", "--- ERROR: wrong #{stdxxx}",
"--- actual: hello", "--- actual: hello",
"--- world", "--- world",