def test_magicIndex_fail(): arr = [-10,-5,3,4,6] assert(magicIndex(arr) == -1)
def test_magicIndex_pass(): arr = [-10,-5,2,4,6] assert(magicIndex(arr) == 2)