#NEWLINE# def test_dummy_sgs( ) : #NEWLINE# #INDENT# a = dummy_sgs ( [ 1 , 2 ] , 0 , 4 ) #NEWLINE# assert ( a == [ [ 0 , 2 , 1 , 3 , 4 , 5 ] ] ) #NEWLINE# a = dummy_sgs ( [ 2 , 3 , 4 , 5 ] , 0 , 8 ) #NEWLINE# assert ( a == [ a . _array_form for x in [ Perm ( 9 ) ( 2 , 3 ) , Perm ( 9 ) ( 4 , 5 ) , Perm ( 9 ) ( 2 , 4 ) ( 3 , 5 ) ] ] ) #NEWLINE# a = dummy_sgs ( [ 2 , 3 , 4 , 5 ] , 1 , 8 ) #NEWLINE# assert ( a == [ x . _array_form for x in [ Perm ( 2 , 3 ) ( 8 , 9 ) , Perm ( 4 , 5 ) ( 8 , 9 ) , Perm ( 9 ) ( 2 , 4 ) ( 3 , 5 ) ] ] )