summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2012-06-15 13:06:43 +0900
committerMasaki Muranaka <[email protected]>2012-06-15 13:06:43 +0900
commitcfd5f5157d06f9c62a04660843c3c02014d8a3a5 (patch)
tree443606b38dfa193f029506002cc57ca0782ea4aa /test
parentccec3da35bb2a6fff9fb58c30645b02692996f8b (diff)
downloadmruby-cfd5f5157d06f9c62a04660843c3c02014d8a3a5.tar.gz
mruby-cfd5f5157d06f9c62a04660843c3c02014d8a3a5.zip
Move Subclasses of ScriptError to mrblib.
Diffstat (limited to 'test')
-rw-r--r--test/t/exception.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index 22795161f..d7226a368 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -41,6 +41,36 @@ assert('Exception.exception', '15.2.22.4.1') do
e.message == 'a'
end
+assert('ScriptError', '15.2.37') do
+ begin
+ raise ScriptError.new
+ rescue ScriptError
+ true
+ else
+ false
+ end
+end
+
+assert('SyntaxError', '15.2.38') do
+ begin
+ raise SyntaxError.new
+ rescue SyntaxError
+ true
+ else
+ false
+ end
+end
+
+assert('LoadError', '15.2.39') do
+ begin
+ raise LoadError.new
+ rescue LoadError
+ true
+ else
+ false
+ end
+end
+
# Not ISO specified
assert('Exception 1') do