1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/date] Use omit instead of skip for test-unit

https://github.com/ruby/date/commit/537f3f681e
This commit is contained in:
Hiroshi SHIBATA 2022-01-11 21:31:48 +09:00
parent 236678b823
commit 7f5e06601b

View file

@ -125,7 +125,7 @@ class TestDateStrftime < Test::Unit::TestCase
def test_strftime__3_2 def test_strftime__3_2
s = Time.now.strftime('%G') s = Time.now.strftime('%G')
skip if s.empty? || s == '%G' omit if s.empty? || s == '%G'
(Date.new(1970,1,1)..Date.new(2037,12,31)).each do |d| (Date.new(1970,1,1)..Date.new(2037,12,31)).each do |d|
t = Time.utc(d.year,d.mon,d.mday) t = Time.utc(d.year,d.mon,d.mday)
assert_equal(t.strftime('%G'), d.strftime('%G')) assert_equal(t.strftime('%G'), d.strftime('%G'))