* configure.in (rb_cv_broken_glibc_ia64_erfc): renamed from
[ruby-svn.git] / test / test_singleton.rb
blobbd11095cf24146763080d9cc000d22475ac8fddd
1 require 'test/unit'
2 require 'singleton'
4 class TestSingleton < Test::Unit::TestCase
5   class C
6     include Singleton
7   end
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