summaryrefslogtreecommitdiff
path: root/sample/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 9778b6e4cae..70cd79e9b2d 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -1242,6 +1242,14 @@ rescue NoMethodError
test_ok true
end
+module M001; end
+module M002; end
+module M003; include M002; end
+module M002; include M001; end
+module M003; include M002; end
+
+test_ok(M003.ancestors == [M003, M002, M001])
+
test_check "marshal"
$x = [1,2,3,[4,5,"foo"],{1=>"bar"},2.5,fact(30)]
$y = Marshal.dump($x)