diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-08-30 12:08:00 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-08-30 16:10:25 +0000 |
| commit | c5c0a3cf1772c9345373ecc4d7558f216b4ceb62 (patch) | |
| tree | 366c6c35336149d561adceadc9b1701be92aa761 /test | |
| parent | 9d8d2b81d21750774c60fd15b535a75ce61f04e7 (diff) | |
[ruby/yarp] Use assert_raise
https://github.com/ruby/yarp/commit/b85e01d77d
Diffstat (limited to 'test')
| -rw-r--r-- | test/yarp/ruby_api_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/yarp/ruby_api_test.rb b/test/yarp/ruby_api_test.rb index 4e952b8b25..79a5e2ab0a 100644 --- a/test/yarp/ruby_api_test.rb +++ b/test/yarp/ruby_api_test.rb @@ -40,10 +40,14 @@ class YARPRubyAPITest < Test::Unit::TestCase assert_equal 10, joined.length <<<<<<< HEAD +<<<<<<< HEAD e = assert_rais RuntimeError do ======= assert_raises RuntimeError, "Incompatible locations" do >>>>>>> 687213d2e38 (use a more idiomatic form of `assert_raises`) +======= + assert_raise RuntimeError, "Incompatible locations" do +>>>>>>> b85e01d77d2 (Use assert_raise) arg.location.join(recv.location) end @@ -51,6 +55,7 @@ class YARPRubyAPITest < Test::Unit::TestCase other_arg = other_args_node.arguments[0] <<<<<<< HEAD +<<<<<<< HEAD e = assert_rais RuntimeError do ======= assert_raises RuntimeError, "Incompatible sources" do @@ -63,6 +68,13 @@ class YARPRubyAPITest < Test::Unit::TestCase ======= assert_raises RuntimeError, "Incompatible sources" do >>>>>>> 687213d2e38 (use a more idiomatic form of `assert_raises`) +======= + assert_raise RuntimeError, "Incompatible sources" do + other_arg.location.join(recv.location) + end + + assert_raise RuntimeError, "Incompatible sources" do +>>>>>>> b85e01d77d2 (Use assert_raise) recv.location.join(other_arg.location) end end |
