We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First, It works in my ruby script, but it does not work in my unit test script:
test.rb:
require 'test/unit' class SolutionTest < Test::Unit::TestCase def test_case_1 a = 12 puts a.wrong end end
Below is the output of the rescue command:
➜ rescue test.rb Loaded suite /local/code/trie_tree/test Started E ==================================== /local/code/trie_tree/test.rb:7:in `test_case_1' 4: 5: def test_case_1 6: a = 12 => 7: puts a.wrong 8: end 9: end Error: test_case_1(SolutionTest): NoMethodError: undefined method `wrong' for 12:Integer =================================== Finished in 0.002424 seconds. ------------------------------- 1 tests, 0 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications 0% passed -------------------------------- 412.54 tests/s, 0.00 assertions/s ➜ ruby -v ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17] ➜ rbenv versions system * 2.5.3 (set by /Users/rick/.rbenv/version) ➜ gem list | grep test minitest (5.10.3) test-unit (3.2.7)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
First, It works in my ruby script, but it does not work in my unit test script:
test.rb:
Below is the output of the rescue command:
The text was updated successfully, but these errors were encountered: