Sha256: 9b7a34d5d04d8a5a1cc94e647c8d8b140864c5ce68e000e6e99e7f8d1e11c694
Contents?: true
Size: 947 Bytes
Versions: 6
Compression:
Stored size: 947 Bytes
Contents
# -*- coding: utf-8 -*- =begin Copyright (C) 2012 Takashi SUGA You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive. =end module MiniTest class FrenchRepublican < MiniTest::TestCase def test__french_republican date = When.when? '1.1.1^^FrenchRepublican' [["0001-01-01", 2375840], ["0002-01-01", 2376205], ["0003-01-01", 2376570], ["0004-01-01", 2376936], ["0005-01-01", 2377301], ["0006-01-01", 2377666], ["0007-01-01", 2378031], ["0008-01-01", 2378397], ["0009-01-01", 2378762], ["0010-01-01", 2379127], ["0011-01-01", 2379492], ["0012-01-01", 2379858], ["0013-01-01", 2380223], ["0014-01-01", 2380588]].each do |sample| assert_equal(sample, [date.to_s, date.to_i]) date += When::P1Y end end end end
Version data entries
6 entries across 6 versions & 1 rubygems