зеркало из https://github.com/github/ruby.git
* test/ruby/test_system.rb (TestSystem#test_system_at):
added test. [ruby-core:35218] (#4393) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
23301142cc
Коммит
cee21ad215
|
@ -1,3 +1,8 @@
|
|||
Mon Feb 14 17:28:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* test/ruby/test_system.rb (TestSystem#test_system_at):
|
||||
added test. [ruby-core:35218] (#4393)
|
||||
|
||||
Mon Feb 14 13:15:35 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (is_internal_cmd): if the first char of prog is '@',
|
||||
|
|
|
@ -88,6 +88,13 @@ class TestSystem < Test::Unit::TestCase
|
|||
}
|
||||
end
|
||||
|
||||
def test_system_at
|
||||
if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
testname = '[ruby-core:35218]'
|
||||
assert_equal("foo\n", `@echo foo`, testname);
|
||||
end
|
||||
end
|
||||
|
||||
def test_empty_evstr
|
||||
assert_equal("", eval('"#{}"', nil, __FILE__, __LINE__), "[ruby-dev:25113]")
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче