Hiroshi SHIBATA
7f5e06601b
[ruby/date] Use omit instead of skip for test-unit
...
https://github.com/ruby/date/commit/537f3f681e
2022-01-12 10:53:34 +09:00
Jeremy Evans
f9f7f3a75e
[ruby/date] Make %v strftime flag use uppercase month
...
%v is supposed to be the VMS date, and VMS date format uses an
uppercase month.
Ruby 1.8 used an uppercase month for %v, but the behavior was
changed without explanation in r31672.
Time#strftime still uses an uppercase month for %v, so this change
makes Date#strftime consistent with Time#strftime.
Fixes [Bug #13810 ]
https://github.com/ruby/date/commit/56c489fd7e
2021-09-28 17:34:26 +09:00
Nobuyoshi Nakada
afea8db8c7
Test invalid offset warnings
2019-07-24 01:42:45 +09:00
nobu
320c98b436
date: support for Reiwa, new Japanese era
...
[Feature #15742 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-09 01:27:36 +00:00
nobu
321d72bdd6
Added tests for end of Heisei
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-01 05:58:31 +00:00
kazu
8edb6ce4f7
{ext,test}/date: Specify frozen_string_literal: true.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-27 00:29:21 +00:00
nobu
58e8c9c895
date_strftime.c: check precision
...
* ext/date/date_strftime.c (date_strftime_with_tmx): reject too
large precision to get rid of buffer overflow.
reported by Guido Vranken <guido AT guidovranken.nl>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-14 13:07:27 +00:00
naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
tadf
5dc5a52612
modified tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-03 05:17:38 +00:00
nobu
a000c52b83
* untabified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-27 02:23:14 +00:00
tadf
9f698ff1d5
modified test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-27 01:05:31 +00:00
tadf
00fd38644d
* ext/date/date_strftime.c: should also be aware of flags on
...
complex specifier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-15 22:03:37 +00:00
tadf
3486a98a71
* ext/date/date_core.c: [ruby-core:42998]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-28 11:28:23 +00:00
tadf
23658b355c
* ext/date/date_core.c: avoided using timev.
...
* ext/date/date_strftime.c: ditto.
* ext/date/date_tmx.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 14:47:04 +00:00
tadf
899d2c14b0
* ext/date/date_core.c: use simple/complex mode instead of light/right mode.
...
* test/date/*.rb: followed the above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31 13:28:48 +00:00
tadf
1f35d2485c
* ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-21 13:47:18 +00:00
tadf
10c4a861eb
* test/ruby/test_{complex2,complexrational}.rb: use skip.
...
* test/date/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 13:18:47 +00:00
tadf
a4ecf14d58
* test/date/*.rb: NEVER SKIP.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 11:56:32 +00:00
tadf
5518dc64cf
* test/date/*.rb: reverted 31432.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 11:38:25 +00:00
tadf
dbe8aba7f9
* test/date/*.rb: reverted 31483.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 11:33:41 +00:00
naruse
bf92aa8b16
Revert r31478.
...
In CRuby's test-all, skip is for something to be fixed.
When some external library is missing, it should silently return;
don't flood the test result with meaningless messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 11:15:23 +00:00
tadf
847b461452
* test/date/*.rb: use skip /w messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 08:18:10 +00:00
tadf
184e9e9d88
use skip
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:05:49 +00:00
tadf
434157444f
* ext/date/date_core.c: replacement of implementation of
...
strftime. It has some limitations that is same as Time's
one. [experimental]
* ext/date/date_strftime.c: new.
* ext/date/lib/date/format.c: removed ruby version of strftime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 12:44:47 +00:00
tadf
6e9ca64843
added some tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 22:28:53 +00:00
tadf
9d2025c881
* lib/date.rb, lib/date/format.rb: [ruby-core:31695]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-22 15:24:03 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
tadf
4671724697
* lib/date/format.rb (strftime): ignores '_' flag for %[LN].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-24 16:26:00 +00:00
tadf
d2ef66df13
delete a meaningless line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-29 12:17:20 +00:00
tadf
1ac57f70e8
* test/date/*.rb: imported additional tests and some adjustments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-29 11:24:03 +00:00
tadf
0e395a6002
* test/date/*.rb: imported a date test suite ruby 1.9 limited ed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 10:06:13 +00:00