#! /usr/bin/env python # def isbn_test ( ): #*****************************************************************************80 # ## ISBN_TEST tests the ISBN library. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 17 September 2015 # # Author: # # John Burkardt # import platform from ch_is_digit import ch_is_digit_test from ch_is_isbn_digit import ch_is_isbn_digit_test from ch_to_digit import ch_to_digit_test from i4_to_isbn_digit import i4_to_isbn_digit_test from i4vec_print import i4vec_print_test from isbn_check_digit_calculate import isbn_check_digit_calculate_test from isbn_digit_to_i4 import isbn_digit_to_i4_test from isbn_is_valid import isbn_is_valid_test from s_to_digits import s_to_digits_test from s_to_isbn_digits import s_to_isbn_digits_test print ( '' ) print ( 'ISBN_TEST' ) print ( ' Python version: %s' % ( platform.python_version ( ) ) ) print ( ' Test the ISBN library.' ) ch_is_digit_test ( ) ch_is_isbn_digit_test ( ) ch_to_digit_test ( ) i4_to_isbn_digit_test ( ) i4vec_print_test ( ) isbn_check_digit_calculate_test ( ) isbn_is_valid_test ( ) isbn_digit_to_i4_test ( ) s_to_digits_test ( ) s_to_isbn_digits_test ( ) # # Terminate. # print ( '' ) print ( 'ISBN_TEST:' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) isbn_test ( ) timestamp ( )