Skip to content

Commit

Permalink
new file.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Jul 3, 2008
1 parent 1aa2d29 commit 55b95b0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/test_singleton.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'test/unit'
require 'singleton'

class TestSingleton < Test::Unit::TestCase
class C
include Singleton
end

def test_marshal
o1 = C.instance
m = Marshal.dump(o1)
o2 = Marshal.load(m)
assert_same(o1, o2)
end
end

0 comments on commit 55b95b0

Please sign in to comment.