Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
c78dc293
Commit
c78dc293
authored
Jun 03, 2012
by
Daniel Bovensiepen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add superclass tests for Exceptions
parent
00caf25b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
0 deletions
+38
-0
test/t/argumenterror.rb
test/t/argumenterror.rb
+5
-0
test/t/exception.rb
test/t/exception.rb
+4
-0
test/t/indexerror.rb
test/t/indexerror.rb
+5
-0
test/t/nameerror.rb
test/t/nameerror.rb
+4
-0
test/t/nomethoderror.rb
test/t/nomethoderror.rb
+5
-0
test/t/rangeerror.rb
test/t/rangeerror.rb
+5
-0
test/t/standarderror.rb
test/t/standarderror.rb
+5
-0
test/t/typeerror.rb
test/t/typeerror.rb
+5
-0
No files found.
test/t/argumenterror.rb
View file @
c78dc293
...
...
@@ -13,3 +13,8 @@ assert('ArgumentError', '15.2.24') do
ArgumentError
.
class
==
Class
and
e2
.
class
==
ArgumentError
end
assert
(
'ArgumentError superclass'
,
'15.2.24.2'
)
do
ArgumentError
.
superclass
==
StandardError
end
test/t/exception.rb
View file @
c78dc293
...
...
@@ -5,6 +5,10 @@ assert('Exception', '15.2.22') do
Exception
.
class
==
Class
end
assert
(
'Exception superclass'
,
'15.2.22.2'
)
do
Exception
.
superclass
==
Object
end
assert
(
'Exception.exception'
,
'15.2.22.4.1'
)
do
e
=
Exception
.
exception
(
'a'
)
...
...
test/t/indexerror.rb
View file @
c78dc293
...
...
@@ -4,3 +4,8 @@
assert
(
'IndexError'
,
'15.2.33'
)
do
IndexError
.
class
==
Class
end
assert
(
'IndexError superclass'
,
'15.2.33.2'
)
do
IndexError
.
superclass
==
StandardError
end
test/t/nameerror.rb
View file @
c78dc293
...
...
@@ -5,6 +5,10 @@ assert('NameError', '15.2.31') do
NameError
.
class
==
Class
end
assert
(
'NameError superclass'
,
'15.2.31.2'
)
do
NameError
.
superclass
==
StandardError
end
# TODO 15.2.31.2.1 NameError#name
assert
(
'NameError#initialize'
,
'15.2.31.2.2'
)
do
...
...
test/t/nomethoderror.rb
View file @
c78dc293
...
...
@@ -11,3 +11,8 @@ assert('NoMethodError', '15.2.32') do
NoMethodError
.
class
==
Class
and
e2
.
class
==
NoMethodError
end
assert
(
'NoMethodError superclass'
,
'15.2.32.2'
)
do
NoMethodError
.
superclass
==
NameError
end
test/t/rangeerror.rb
View file @
c78dc293
...
...
@@ -4,3 +4,8 @@
assert
(
'RangeError'
,
'15.2.26'
)
do
RangeError
.
class
==
Class
end
assert
(
'RangeError superclass'
,
'15.2.26.2'
)
do
RangeError
.
superclass
==
StandardError
end
test/t/standarderror.rb
View file @
c78dc293
...
...
@@ -4,3 +4,8 @@
assert
(
'StandardError'
,
'15.2.23'
)
do
StandardError
.
class
==
Class
end
assert
(
'StandardError superclass'
,
'15.2.23.2'
)
do
StandardError
.
superclass
==
Exception
end
test/t/typeerror.rb
View file @
c78dc293
...
...
@@ -4,3 +4,8 @@
assert
(
'TypeError'
,
'15.2.29'
)
do
TypeError
.
class
==
Class
end
assert
(
'TypeError superclass'
,
'15.2.29.2'
)
do
TypeError
.
superclass
==
StandardError
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment