repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* configure.in (rb_cv_broken_glibc_ia64_erfc): renamed from
[ruby-svn.git]
/
test
/
test_singleton.rb
blob
bd11095cf24146763080d9cc000d22475ac8fddd
1
require 'test/unit'
2
require 'singleton'
3
4
class TestSingleton < Test::Unit::TestCase
5
class C
6
include Singleton
7
end
8
9
def test_marshal
10
o1 = C.instance
11
m = Marshal.dump(o1)
12
o2 = Marshal.load(m)
13
assert_same(o1, o2)
14
end
15
end