source: EcnlProtoTool/trunk/mruby-1.2.0/test/t/superclass.rb@ 321

Last change on this file since 321 was 321, checked in by coas-nagasima, 7 years ago

文字コードを設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby;charset=UTF-8
File size: 1.8 KB
Line 
1[
2 # [:Object, :implementation_defined_value, '15.2.2.1'],
3 [:Module, :Object, '15.2.2.2'],
4 [:Class, :Module, '15.2.3.2'],
5 [:NilClass, :Object, '15.2.4.2'],
6 [:TrueClass, :Object, '15.2.5.2'],
7 [:FalseClass, :Object, '15.2.6.2'],
8 [:Numeric, :Object, '15.2.7.2'],
9 [:Integer, :Numeric, '15.2.8.2'],
10 [:Float, :Numeric, '15.2.9.2'],
11 [:String, :Object, '15.2.10.2'],
12 [:Symbol, :Object, '15.2.11.2'],
13 [:Array, :Object, '15.2.12.2'],
14 [:Hash, :Object, '15.2.13.2'],
15 [:Range, :Object, '15.2.14.2'],
16# [:Regexp, :Object, '15.2.15.2'], #No Regexp in mruby core
17# [:MatchData, :Object, '15.2.16.2'],
18 [:Proc, :Object, '15.2.17.2'],
19# [:Struct, :Object, '15.2.18.2'],
20# [:Time, :Object, '15.2.19.2'],
21# [:IO, :Object, '15.2.20.2'],
22# [:File, :IO, '15.2.21.2'],
23 [:Exception, :Object, '15.2.22.2'],
24 [:StandardError, :Exception, '15.2.23.2'],
25 [:ArgumentError, :StandardError, '15.2.24.2'],
26 [:LocalJumpError, :StandardError, '15.2.25.2'],
27 [:RangeError, :StandardError, '12.2.26.2'],
28 [:RegexpError, :StandardError, '12.2.27.2'],
29 [:RuntimeError, :StandardError, '12.2.28.2'],
30 [:TypeError, :StandardError, '12.2.29.2'],
31# [:ZeroDivisionError, :StandardError, '12.2.30.2'], # No ZeroDivisionError in mruby
32 [:NameError, :StandardError, '15.2.31.2'],
33 [:NoMethodError, :NameError, '15.2.32.2'],
34 [:IndexError, :StandardError, '15.2.33.2'],
35# [:IOError, :StandardError, '12.2.34.2'],
36# [:EOFError, :IOError, '12.2.35.2'],
37# [:SystemCallError, :StandardError, '15.2.36.2'],
38 [:ScriptError, :Exception, '12.2.37.2'],
39 [:SyntaxError, :ScriptError, '12.2.38.2'],
40# [:LoadError, :ScriptError, '12.2.39,2'],
41].each do |cls, super_cls, iso|
42 assert "Direct superclass of #{cls}", iso do
43 skip "#{cls} isn't defined" unless Object.const_defined? cls
44 assert_equal Object.const_get(super_cls), Object.const_get(cls).superclass
45 end
46end
Note: See TracBrowser for help on using the repository browser.