# t801 --- ci -dYYYY-DOY (day of year) parsing
#
# Copyright (C) 2011-2015 Thien-Thi Nguyen
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

. $srcdir/common
split_std_out_err no
. $srcdir/common-d

##
# Check that ‘ci -dYYYY-DOY’ (day of year) is properly parsed.
# This was a bug with RCS 5.7 and earlier.
##

##
# * A non leap year.
##
try 2011-001 2011/01/01
try 2011-042 2011/02/11
try 2011-142 2011/05/22
try 2011-242 2011/08/30
try 2011-342 2011/12/08
try 2011-365 2011/12/31

##
# * A leap year.
##
try 2012-001 2012/01/01
try 2012-059 2012/02/28
try 2012-060 2012/02/29
try 2012-061 2012/03/01
try 2012-342 2012/12/07
try 2012-366 2012/12/31

exit 0

# t801 ends here
