OSDN Git Service
(root)
/
splhack
/
AndroidRuby.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ruby-1.9.1-rc1
[splhack/AndroidRuby.git]
/
lib
/
ruby-1.9.1-rc1
/
test
/
test_singleton.rb
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