summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-10 08:41:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-10 08:41:46 +0000
commit7132a4f9798eada290b3bd22184ca7e43c551ccf (patch)
treef3a7a3af4d74d868654deea51d5bed572a01c7e8 /test
parent1d63f4eead83814d0881ad75373c64ade01d139f (diff)
* marshal.c (w_object): TYPE_USERDEF assigns id for ivars first.
[ruby-dev:34159] by nagachika. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/marshaltestlib.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/marshaltestlib.rb b/test/ruby/marshaltestlib.rb
index 211bbd8796..0a70380d44 100644
--- a/test/ruby/marshaltestlib.rb
+++ b/test/ruby/marshaltestlib.rb
@@ -383,6 +383,11 @@ module MarshalTestLib
marshal_equal(o1) {|o| o.instance_eval { @iv }}
end
+ def test_time_in_array
+ t = Time.now
+ assert_equal([t,t], Marshal.load(Marshal.dump([t, t])), "[ruby-dev:34159]")
+ end
+
def test_true
marshal_equal(true)
end