* test/test_syslog.rb: adjust indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2014-02-27 12:52:16 +00:00
Родитель 27bfb11d0d
Коммит 829d9fdce6
1 изменённых файлов: 10 добавлений и 10 удалений

20
test/test_syslog.rb Normal file → Executable file
Просмотреть файл

@ -130,13 +130,13 @@ class TestSyslog < Test::Unit::TestCase
options = Syslog::LOG_PERROR | Syslog::LOG_NDELAY
Syslog.open("syslog_test", options) { |sl|
sl.log(Syslog::LOG_NOTICE, "test1 - hello, %s!", "world")
sl.notice("test1 - hello, %s!", "world")
sl.log(Syslog::LOG_NOTICE, "test1 - hello, %s!", "world")
sl.notice("test1 - hello, %s!", "world")
}
Syslog.open("syslog_test", options | Syslog::LOG_PID) { |sl|
sl.log(Syslog::LOG_CRIT, "test2 - pid")
sl.crit("test2 - pid")
sl.log(Syslog::LOG_CRIT, "test2 - pid")
sl.crit("test2 - pid")
}
exit!
}
@ -172,12 +172,12 @@ class TestSyslog < Test::Unit::TestCase
def test_inspect
Syslog.open { |sl|
assert_equal(format('<#%s: opened=true, ident="%s", options=%d, facility=%d, mask=%d>',
Syslog,
sl.ident,
sl.options,
sl.facility,
sl.mask),
sl.inspect)
Syslog,
sl.ident,
sl.options,
sl.facility,
sl.mask),
sl.inspect)
}
assert_equal(format('<#%s: opened=false>', Syslog), Syslog.inspect)