Sha256: c9bc9603afe75da778ba6d4d1dae1e87a995e9306278058a15cb229d20366eeb
Contents?: true
Size: 914 Bytes
Versions: 5
Compression:
Stored size: 914 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
5 entries across 5 versions & 1 rubygems