summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-28 14:51:30 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-28 14:51:30 +0000
commit8930b5fc2774239837c9d1be4b73dad8c0f99a63 (patch)
treedc8b83a173463573727d872cfb29452e9b8fc2e2
parentedbfa15a4fa6d609a5fc07eb0cbf9371a80383d0 (diff)
downloadruby-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
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_time.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fdaff39e6..e76f56f55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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"))