Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some test case for nendo.test.

  • Loading branch information...
commit 2c29dacd7c6d89d8a2bb1f86a57f63533af04514 1 parent cb058a8
@kiyoka kiyoka authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 test/testframework_spec.rb
View
10 test/testframework_spec.rb
@@ -34,7 +34,7 @@
#
require 'nendo'
include Nendo
-
+require 'timeout'
describe Nendo, "when use NendoTestError " do
before do
@@ -50,6 +50,8 @@
@nendoError1.type.should == RuntimeError
@nendoError1.type = RuntimeError
@nendoError1.type.should == RuntimeError
+ @nendoError1.type = Timeout::Error
+ @nendoError1.type.should == Timeout::Error
@nendoError2.type.should == RuntimeError
end
end
@@ -139,8 +141,10 @@
@nendo.evalStr( '(test-check (test-error ArgumentError) (test-error RuntimeError ))' ).should == '#f'
@nendo.evalStr( '(test-check (test-error SyntaxError) (test-error RuntimeError ))' ).should == '#f'
- @nendo.evalStr( '(test* "exception" (test-error TypeError) (+ 1.1 "str"))' ).should == '#t'
- @nendo.evalStr( '(test* "exception" (test-error RuntimeError) (error "[RuntimeError]"))' ).should == '#t'
+ @nendo.evalStr( '(test* "exception" (test-error TypeError) (+ 1.1 "str"))' ).should == '#t'
+ @nendo.evalStr( '(test* "exception" (test-error RuntimeError) (+ 1.1 "str"))' ).should == '#f'
+ @nendo.evalStr( '(test* "exception" (test-error TypeError) (error "[RuntimeError]"))' ).should == '#f'
+ @nendo.evalStr( '(test* "exception" (test-error RuntimeError) (error "[RuntimeError]"))' ).should == '#t'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.