diff options
| author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-28 14:51:30 +0000 |
|---|---|---|
| committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-28 14:51:30 +0000 |
| commit | 8930b5fc2774239837c9d1be4b73dad8c0f99a63 (patch) | |
| tree | dc8b83a173463573727d872cfb29452e9b8fc2e2 /test/ruby | |
| parent | edbfa15a4fa6d609a5fc07eb0cbf9371a80383d0 (diff) | |
| download | ruby-8930b5fc2774239837c9d1be4b73dad8c0f99a63.tar.gz ruby-8930b5fc2774239837c9d1be4b73dad8c0f99a63.tar.xz ruby-8930b5fc2774239837c9d1be4b73dad8c0f99a63.zip | |
* test/ruby/test_time.rb (test_strftime): make test for %a independent
from local timezone. [ruby-dev:35992]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_time.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index 87516e10c..b36813bb9 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -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")) |
