summaryrefslogtreecommitdiffhomepage
path: root/test/t/class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/class.rb')
-rw-r--r--test/t/class.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/t/class.rb b/test/t/class.rb
index 3c398e923..d252cf590 100644
--- a/test/t/class.rb
+++ b/test/t/class.rb
@@ -5,6 +5,11 @@ assert('Class', '15.2.3') do
Class.class == Class
end
+assert('Class#superclass', '15.2.3.3.4') do
+ class SubClass < String; end
+ SubClass.superclass == String
+end
+
assert('Class#new', '15.2.3.3.3') do
# at the moment no exception on singleton class
#e1 = nil
@@ -32,7 +37,7 @@ assert('Class#new', '15.2.3.3.3') do
end
TestClass.new(:arg).result == :only_args
- # with block doesn't work yet
+ # with block doesn't work yet
end
# Not ISO specified