#! /usr/bin/env python # def unicycle_test ( ): #*****************************************************************************80 # ## UNICYCLE_TEST tests the UNICYCLE library. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 26 August 2015 # # Author: # # John Burkardt # import platform from i4_factorial import i4_factorial_test from i4_modp import i4_modp_test from i4_uniform_ab import i4_uniform_ab_test from i4_wrap import i4_wrap_test from i4vec_indicator1 import i4vec_indicator1_test from i4vec_print import i4vec_print_test from i4vec_reverse import i4vec_reverse_test from i4vec_uniform_ab import i4vec_uniform_ab_test from perm1 import perm1_check_test from perm1 import perm1_enum_test from perm1 import perm1_inverse_test from perm1 import perm1_lex_next_test from perm1 import perm1_lex_rank_test from perm1 import perm1_lex_unrank_test from perm1 import perm1_print_test from perm1 import perm1_random_test from unicycle import perm1_is_unicycle_test from unicycle import unicycle_check_test from unicycle import unicycle_enum_test from unicycle import unicycle_index_test from unicycle import unicycle_index_print_test from unicycle import unicycle_index_to_sequence_test from unicycle import unicycle_inverse_test from unicycle import unicycle_next_test from unicycle import unicycle_random_test from unicycle import unicycle_rank_test from unicycle import unicycle_unrank_test print ( '' ) print ( 'UNICYCLE_TEST' ) print ( ' Python version: %s' % ( platform.python_version ( ) ) ) print ( ' Test the UNICYCLE library.' ) i4_factorial_test ( ) i4_modp_test ( ) i4_uniform_ab_test ( ) i4_wrap_test ( ) i4vec_indicator1_test ( ) i4vec_print_test ( ) i4vec_reverse_test ( ) i4vec_uniform_ab_test ( ) perm1_check_test ( ) perm1_enum_test ( ) perm1_inverse_test ( ) perm1_lex_next_test ( ) perm1_lex_rank_test ( ) perm1_lex_unrank_test ( ) perm1_print_test ( ) perm1_random_test ( ) perm1_is_unicycle_test ( ) unicycle_check_test ( ) unicycle_enum_test ( ) unicycle_index_test ( ) unicycle_index_print_test ( ) unicycle_index_to_sequence_test ( ) unicycle_inverse_test ( ) unicycle_next_test ( ) unicycle_random_test ( ) unicycle_rank_test ( ) unicycle_unrank_test ( ) # # Terminate. # print ( '' ) print ( 'UNICYCLE_TEST:' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) unicycle_test ( ) timestamp ( )