#! /usr/bin/env python # def bank_test ( ): #*****************************************************************************80 # ## BANK_TEST tests the BANK library. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 07 October 2015 # # Author: # # John Burkardt # import platform print ( '' ) print ( 'BANK_TEST' ) print ( ' Python version: %s' % ( platform.python_version ( ) ) ) print ( ' Test the BANK library.' ) from ch_is_digit import ch_is_digit_test from ch_to_digit import ch_to_digit_test from i4vec_print import i4vec_print_test from s_to_digits import s_to_digits_test from bank_check_digit_calculate import bank_check_digit_calculate_test from bank_is_valid import bank_is_valid_test ch_is_digit_test ( ) ch_to_digit_test ( ) i4vec_print_test ( ) s_to_digits_test ( ) bank_check_digit_calculate_test ( ) bank_is_valid_test ( ) # # Terminate. # print ( '' ) print ( 'BANK_TEST:' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) bank_test ( ) timestamp ( )