summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorskandhas <[email protected]>2013-04-25 11:17:34 +0800
committerskandhas <[email protected]>2013-04-25 11:17:34 +0800
commit8d778d9860792d9af81d97db25d9f8000327bee9 (patch)
tree66f2faa11292ce167078357f662e65887c0a8ee5 /test
parent4faaef437d614ad270f646ccbd5a80fd80d4359e (diff)
downloadmruby-8d778d9860792d9af81d97db25d9f8000327bee9.tar.gz
mruby-8d778d9860792d9af81d97db25d9f8000327bee9.zip
fix Module#ancestors and update test
Diffstat (limited to 'test')
-rw-r--r--test/t/module.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index 23dacb44d..41ee8d8df 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -14,8 +14,12 @@ end
# TODO not implemented ATM assert('Module.nesting', '15.2.2.3.2') do
assert('Module#ancestors', '15.2.2.4.9') do
+ class Test4ModuleAncestors
+ end
+ sc = Test4ModuleAncestors.singleton_class
r = String.ancestors
- r.class == Array and r.include?(String) and r.include?(Object)
+ r.class == Array and r.include?(String) and r.include?(Object) and
+ ! sc.ancestors.include?(sc)
end
assert('Module#append_features', '15.2.2.4.10') do