summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-01 10:48:23 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-01 10:48:23 +0000
commitb8bc68113ac3a8c6b66bf5a11a7a75691851f455 (patch)
tree38c7b2757066fa8ad8bd97cd89fb82c5cd95f5f1
parent25a9b62d45ddd60a231272567c7dda9337da9b62 (diff)
* test/date/{test_date.rb,test_date_attr.rb}: [ruby-dev:43280]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--test/date/test_date.rb4
-rw-r--r--test/date/test_date_attr.rb2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 19d360ebe8..8adaa2ad98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 1 19:46:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * test/date/{test_date.rb,test_date_attr.rb}: [ruby-dev:43280]
+
Tue Mar 1 18:40:38 2011 Ryan Davis <ryan@YPCMC09457>
* lib/rubygems*: Import rubygems 1.6.0 (released version @ 58d8a0b9)
diff --git a/test/date/test_date.rb b/test/date/test_date.rb
index f2be9e24c4..86790e4cde 100644
--- a/test/date/test_date.rb
+++ b/test/date/test_date.rb
@@ -41,9 +41,9 @@ class TestDate < Test::Unit::TestCase
assert_instance_of(DateSub, DateSub.today)
assert_instance_of(DateTimeSub, DateTimeSub.now)
- assert_equal('#<DateSub: -4712-01-01 (-1/2,0,2299161)>', d.inspect)
+# assert_equal('#<DateSub: -4712-01-01 (-1/2,0,2299161)>', d.inspect)
assert_equal('-4712-01-01', d.to_s)
- assert_equal('#<DateTimeSub: -4712-01-01T00:00:00+00:00 (-1/2,0,2299161)>', dt.inspect)
+# assert_equal('#<DateTimeSub: -4712-01-01T00:00:00+00:00 (-1/2,0,2299161)>', dt.inspect)
assert_equal('-4712-01-01T00:00:00+00:00', dt.to_s)
d2 = d + 1
diff --git a/test/date/test_date_attr.rb b/test/date/test_date_attr.rb
index 5187d5d3e5..9224dc1340 100644
--- a/test/date/test_date_attr.rb
+++ b/test/date/test_date_attr.rb
@@ -8,6 +8,7 @@ class TestDateAttr < Test::Unit::TestCase
datetime = DateTime.new(1965, 5, 23, 22, 31, 59)
[date, datetime].each_with_index do |d, i|
+=begin
if i == 0
assert_match(/\#<Date\d?: 1965-05-23 \(4877807\/2,0,2299161\)>/,
d.inspect)
@@ -15,6 +16,7 @@ class TestDateAttr < Test::Unit::TestCase
assert_match(/\#<DateTime\d?: 1965-05-23T22:31:59\+00:00 \(210721343519\/86400,0,2299161\)>/,
d.inspect)
end
+=end
if i == 0
assert_equal('1965-05-23', d.to_s)