diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-12 13:42:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-12 13:43:25 +0900 |
commit | 761662bbea12e5b3d4e319a50291de75ad997e98 (patch) | |
tree | 35237a02ceb87c2850ff76394afbdef8e79c0588 /test/ruby/test_comparable.rb | |
parent | 074bf01e13db1ac0407786a3bc1b85c13135fd36 (diff) | |
download | ruby-761662bbea12e5b3d4e319a50291de75ad997e98.tar.gz |
Revert previous commit [ci skip]
This reverts commit 074bf01e13db1ac0407786a3bc1b85c13135fd36, "Test
`Comparable#clamp` with inverse arguments as well as a Range".
The test is already in another method.
Diffstat (limited to 'test/ruby/test_comparable.rb')
-rw-r--r-- | test/ruby/test_comparable.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_comparable.rb b/test/ruby/test_comparable.rb index 4196bc45ac..4a90d443bf 100644 --- a/test/ruby/test_comparable.rb +++ b/test/ruby/test_comparable.rb @@ -115,9 +115,9 @@ class TestComparable < Test::Unit::TestCase assert_raise_with_message(*exc) {@o.clamp(-1...0)} assert_raise_with_message(*exc) {@o.clamp(...2)} - exc = [ArgumentError, 'min argument must be less than or equal to max argument'] - assert_raise_with_message(*exc) {@o.clamp(2, 1)} - assert_raise_with_message(*exc) {@o.clamp(2..1)} + assert_raise_with_message(ArgumentError, 'min argument must be less than or equal to max argument') { + @o.clamp(2..1) + } end def test_err |