summaryrefslogtreecommitdiff
path: root/test/date/test_date_attr.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-11 05:09:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-11 05:09:35 +0000
commit8c69f7ec442c152a75058caab86040c4ee70b00b (patch)
treedb5945d58698518313f9475e3c61f13a9ca7f8fc /test/date/test_date_attr.rb
parent1a0e374b33ea83ecb1fa03d5c2b90eac4de6f638 (diff)
test/date: removed unnecessaruy `__send__`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/date/test_date_attr.rb')
-rw-r--r--test/date/test_date_attr.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/date/test_date_attr.rb b/test/date/test_date_attr.rb
index b3b5d3a800..1e4d1bfd7a 100644
--- a/test/date/test_date_attr.rb
+++ b/test/date/test_date_attr.rb
@@ -88,16 +88,16 @@ class TestDateAttr < Test::Unit::TestCase
end
def test_nth_kday
- assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 1,0))
- assert_equal(true, Date.new(2001,1,14).__send__(:nth_kday?, 2,0))
- assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 3,0))
- assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 4,0))
- assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 5,0))
- assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, -1,0))
- assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, -2,0))
- assert_equal(true, Date.new(2001,1,14).__send__(:nth_kday?, -3,0))
- assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, -4,0))
- assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, -5,0))
+ assert_equal(false, Date.new(2001,1,14).nth_kday?(1,0))
+ assert_equal(true, Date.new(2001,1,14).nth_kday?(2,0))
+ assert_equal(false, Date.new(2001,1,14).nth_kday?(3,0))
+ assert_equal(false, Date.new(2001,1,14).nth_kday?(4,0))
+ assert_equal(false, Date.new(2001,1,14).nth_kday?(5,0))
+ assert_equal(false, Date.new(2001,1,14).nth_kday?(-1,0))
+ assert_equal(false, Date.new(2001,1,14).nth_kday?(-2,0))
+ assert_equal(true, Date.new(2001,1,14).nth_kday?(-3,0))
+ assert_equal(false, Date.new(2001,1,14).nth_kday?(-4,0))
+ assert_equal(false, Date.new(2001,1,14).nth_kday?(-5,0))
end if Date.new.respond_to?(:nth_kday?, true)
end