зеркало из https://github.com/github/ruby.git
* test/ruby/test_time.rb (test_strftime): make test for %a independent
from local timezone. [ruby-dev:35992] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c543447ee0
Коммит
846f142a17
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 28 23:50:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* test/ruby/test_time.rb (test_strftime): make test for %a independent
|
||||
from local timezone. [ruby-dev:35992]
|
||||
|
||||
Thu Aug 28 23:39:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* string.c (rb_str_shared_replace): remove corrupt noembed string
|
||||
|
|
|
@ -378,7 +378,8 @@ class TestTime < Test::Unit::TestCase
|
|||
assert_equal("foo\0bar\x0000\x0000\x0000", T2000.strftime("foo\0bar\0%H\0%M\0%S"))
|
||||
assert_equal("foo" * 1000, T2000.strftime("foo" * 1000))
|
||||
|
||||
assert_equal("Sat", Time.at(946684800).strftime("%a"))
|
||||
t = Time.mktime(2000, 1, 1)
|
||||
assert_equal("Sat", t.strftime("%a"))
|
||||
|
||||
t = Time.at(946684800, 123456.789)
|
||||
assert_equal("123", t.strftime("%3N"))
|
||||
|
|
Загрузка…
Ссылка в новой задаче