mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 02:53:57 +02:00
* strftime.c (rb_strftime): The default precision should be 1, not
0. [ruby-dev:37155] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1537855833
commit
32aed81046
3 changed files with 16 additions and 4 deletions
|
@ -444,5 +444,10 @@ class TestTime < Test::Unit::TestCase
|
|||
assert_equal(" 2", t.strftime("%l"))
|
||||
assert_equal("02", t.strftime("%0l"))
|
||||
assert_equal(" 2", t.strftime("%_l"))
|
||||
|
||||
# [ruby-dev:37155]
|
||||
t = Time.mktime(1970, 1, 18)
|
||||
assert_equal("0", t.strftime("%w"))
|
||||
assert_equal("7", t.strftime("%u"))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue