from generic_test_engine import generic_test_engine
__author__ = 'bruno'


def test_count_evens():
    test_matrix = [
        ([2,1,2,3,4],3),
        ([2,2,0],3),
        ([1,3,5],0),
    ]
    generic_test_engine(test_matrix,count_evens,unpack=False)
    
def count_evens(arr): return sum(list(map(lambda _:(1+_)%2,arr)))

print ("Testing count_evens")
test_count_evens()



9a7c3aa4f8c524307ef9992242e26a62ecf4eb30
<mask token>


def test_count_evens():
    test_matrix = [([2, 1, 2, 3, 4], 3), ([2, 2, 0], 3), ([1, 3, 5], 0)]
    generic_test_engine(test_matrix, count_evens, unpack=False)


<mask token>

<mask token>


def test_count_evens():
    test_matrix = [([2, 1, 2, 3, 4], 3), ([2, 2, 0], 3), ([1, 3, 5], 0)]
    generic_test_engine(test_matrix, count_evens, unpack=False)


def count_evens(arr):
    return sum(list(map(lambda _: (1 + _) % 2, arr)))


<mask token>

<mask token>
__author__ = 'bruno'


def test_count_evens():
    test_matrix = [([2, 1, 2, 3, 4], 3), ([2, 2, 0], 3), ([1, 3, 5], 0)]
    generic_test_engine(test_matrix, count_evens, unpack=False)


def count_evens(arr):
    return sum(list(map(lambda _: (1 + _) % 2, arr)))


print('Testing count_evens')
test_count_evens()

from generic_test_engine import generic_test_engine
__author__ = 'bruno'


def test_count_evens():
    test_matrix = [([2, 1, 2, 3, 4], 3), ([2, 2, 0], 3), ([1, 3, 5], 0)]
    generic_test_engine(test_matrix, count_evens, unpack=False)


def count_evens(arr):
    return sum(list(map(lambda _: (1 + _) % 2, arr)))


print('Testing count_evens')
test_count_evens()

from generic_test_engine import generic_test_engine
__author__ = 'bruno'


def test_count_evens():
    test_matrix = [
        ([2,1,2,3,4],3),
        ([2,2,0],3),
        ([1,3,5],0),
    ]
    generic_test_engine(test_matrix,count_evens,unpack=False)
    
def count_evens(arr): return sum(list(map(lambda _:(1+_)%2,arr)))

print ("Testing count_evens")
test_count_evens()


