#! /usr/bin/env python # def doomsday_test ( ): #*****************************************************************************80 # ## DOOMSDAY_TEST tests the DOOMSDAY library. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 20 August 2015 # # Author: # # John Burkardt # import platform from doomsday_gregorian import doomsday_gregorian_test01 from doomsday_gregorian import doomsday_gregorian_test02 from i4_modp import i4_modp_test from i4_uniform_ab import i4_uniform_ab_test from i4_wrap import i4_wrap_test from weekday_to_name_common import weekday_to_name_common_test from weekday_values import weekday_values_test from year_is_leap_gregorian import year_is_leap_gregorian_test print ( '' ) print ( 'DOOMSDAY_TEST' ) print ( ' Python version: %s' % ( platform.python_version ( ) ) ) print ( ' Test the DOOMSDAY library.' ) doomsday_gregorian_test01 ( ) doomsday_gregorian_test02 ( ) i4_modp_test ( ) i4_uniform_ab_test ( ) i4_wrap_test ( ) weekday_to_name_common_test ( ) weekday_values_test ( ) year_is_leap_gregorian_test ( ) # # Terminate. # print ( '' ) print ( 'DOOMSDAY_TEST' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) doomsday_test ( ) timestamp ( )