def test_sp1():
 sp = SequencePattern('maxmin_dup')
 y = sp.generate_output_sequence(range(10))
 assert all((y == np.array([9, 0, 2, 3, 4, 5, 6, 7, 8, 9])))
 sp = SequencePattern('sorted')
 y = sp.generate_output_sequence([5, 6, 1, 2, 9])
 assert all((y == np.array([1, 2, 5, 6, 9])))
 sp = SequencePattern('reversed')
 y = sp.generate_output_sequence(range(10))
 assert all((y == np.array([9, 8, 7, 6, 5, 4, 3, 2, 1, 0])))

def test_sp1 ( ) : sp = SequencePattern ( 'maxmin_dup' ) y = sp . generate_output_sequence ( range ( 10 ) ) assert all ( ( y == np . array ( [ 9 , 0 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ] ) ) ) sp = SequencePattern ( 'sorted' ) y = sp . generate_output_sequence ( [ 5 , 6 , 1 , 2 , 9 ] ) assert all ( ( y == np . array ( [ 1 , 2 , 5 , 6 , 9 ] ) ) ) sp = SequencePattern ( 'reversed' ) y = sp . generate_output_sequence ( range ( 10 ) ) assert all ( ( y == np . array ( [ 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 ] ) ) )
test two different sequencepattern instances .