| 1 |
# t801 --- ci -dYYYY-DOY (day of year) parsing |
| 2 |
# |
| 3 |
# Copyright (C) 2011-2022 Thien-Thi Nguyen |
| 4 |
# |
| 5 |
# This program is free software: you can redistribute it and/or |
| 6 |
# modify it under the terms of the GNU General Public License as |
| 7 |
# published by the Free Software Foundation, either version 3 of |
| 8 |
# the License, or (at your option) any later version. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty |
| 12 |
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
# See the GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
. $srcdir/common |
| 19 |
split_std_out_err no |
| 20 |
. $srcdir/common-d |
| 21 |
|
| 22 |
## |
| 23 |
# Check that ‘ci -dYYYY-DOY’ (day of year) is properly parsed. |
| 24 |
# This was a bug with RCS 5.7 and earlier. |
| 25 |
## |
| 26 |
|
| 27 |
## |
| 28 |
# * A non leap year. |
| 29 |
## |
| 30 |
try 2011-001 2011/01/01 |
| 31 |
try 2011-042 2011/02/11 |
| 32 |
try 2011-142 2011/05/22 |
| 33 |
try 2011-242 2011/08/30 |
| 34 |
try 2011-342 2011/12/08 |
| 35 |
try 2011-365 2011/12/31 |
| 36 |
|
| 37 |
## |
| 38 |
# * A leap year. |
| 39 |
## |
| 40 |
try 2012-001 2012/01/01 |
| 41 |
try 2012-059 2012/02/28 |
| 42 |
try 2012-060 2012/02/29 |
| 43 |
try 2012-061 2012/03/01 |
| 44 |
try 2012-342 2012/12/07 |
| 45 |
try 2012-366 2012/12/31 |
| 46 |
|
| 47 |
exit 0 |
| 48 |
|
| 49 |
# t801 ends here |