Ejemplo n.º 1
0
def UT1():
	A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
	B = [0, 1, 2, 0, 0, 5, 3, 0, 2, 6]
	C = [ 0, 6 ]
  	ans = codility_PrisonEscape.solution( A, B, C )
	if( ans != 4 ):
		print "Test Case A failed with:", ans
	pass
Ejemplo n.º 2
0
def UT3():
	A = [0,1,2,3,3,2,6,6]
	B = [1,2,3,4,5,6,8,7]
	C = [1,6]
	ans = codility_PrisonEscape.solution( A, B, C)
	if( ans != 4 ):
		print "Test Case 3 failed with:", ans
	pass
Ejemplo n.º 3
0
def UT6():
	A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
	B = [0, 0, 0, 2, 4, 3, 5, 5, 7, 1]
	C = [3,5]

	ans = codility_PrisonEscape.solution( A, B, C)
	if( ans != 4 ):
		print "Test Case 5 failed with:", ans
	pass
Ejemplo n.º 4
0
def UT5():
	A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
	B = [0, 0, 1, 2, 0, 0, 6, 3, 7, 7]
	C = [7]

	ans = codility_PrisonEscape.solution( A, B, C)
	if( ans != 3 ):
		print "Test Case 5 failed with:", ans
	pass
Ejemplo n.º 5
0
def UT2():
	A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
	B = [0, 0, 0, 1, 2, 4, 2, 5, 5, 4] 
	C = [1, 4]

	ans= codility_PrisonEscape.solution( A, B, C )
	if( ans != 3 ):
		print "Test Case V failed with:", ans
	pass