#NEWLINE# def test_binarysort_with_values( self ) : #NEWLINE# #INDENT# n = 20 #NEWLINE# v = list ( range ( 100 , ( 100 + n ) ) ) #NEWLINE# def check( l , n , start = 0 ) : #NEWLINE# #INDENT# res = self . array_factory ( l ) #NEWLINE# res_v = self . array_factory ( v ) #NEWLINE# f ( res , res_v , 0 , n , start ) #NEWLINE# self . assertSortedValues ( l , v , res , res_v ) #NEWLINE# #UNINDENT# f = self . timsort . binarysort #NEWLINE# l = self . sorted_list ( n ) #NEWLINE# check ( l , n ) #NEWLINE# check ( l , n , ( n // 2 ) ) #NEWLINE# l = self . revsorted_list ( n ) #NEWLINE# check ( l , n ) #NEWLINE# l = self . initially_sorted_list ( n , ( n // 2 ) ) #NEWLINE# check ( l , n ) #NEWLINE# check ( l , n , ( n // 2 ) ) #NEWLINE# l = self . revsorted_list ( n ) #NEWLINE# check ( l , n ) #NEWLINE# l = self . random_list ( n ) #NEWLINE# check ( l , n ) #NEWLINE# l = self . duprandom_list ( n ) #NEWLINE# check ( l , n )