import logging
from week4.majority_element import *
logging.basicConfig(level=logging.DEBUG)
LOGGER = logging.getLogger()

def test_majority_element1():
    arr = [2,3,9,2,2]
    assert majority_element_voting(arr) == 2

def test_majority_element2():
    arr = [1,2,3,4]
    assert majority_element_voting(arr) == None

def test_majority_element3():
    arr = [1,2,3,1]
    assert majority_element_voting(arr) == None
2f6f41d71966c64fb3482942c2aeed3e4b9d4877
<mask token>

<mask token>


def test_majority_element1():
    arr = [2, 3, 9, 2, 2]
    assert majority_element_voting(arr) == 2


def test_majority_element2():
    arr = [1, 2, 3, 4]
    assert majority_element_voting(arr) == None


<mask token>

<mask token>


def test_majority_element1():
    arr = [2, 3, 9, 2, 2]
    assert majority_element_voting(arr) == 2


def test_majority_element2():
    arr = [1, 2, 3, 4]
    assert majority_element_voting(arr) == None


def test_majority_element3():
    arr = [1, 2, 3, 1]
    assert majority_element_voting(arr) == None

<mask token>
logging.basicConfig(level=logging.DEBUG)
<mask token>


def test_majority_element1():
    arr = [2, 3, 9, 2, 2]
    assert majority_element_voting(arr) == 2


def test_majority_element2():
    arr = [1, 2, 3, 4]
    assert majority_element_voting(arr) == None


def test_majority_element3():
    arr = [1, 2, 3, 1]
    assert majority_element_voting(arr) == None

import logging
from week4.majority_element import *
logging.basicConfig(level=logging.DEBUG)
LOGGER = logging.getLogger()

def test_majority_element1():
    arr = [2,3,9,2,2]
    assert majority_element_voting(arr) == 2

def test_majority_element2():
    arr = [1,2,3,4]
    assert majority_element_voting(arr) == None

def test_majority_element3():
    arr = [1,2,3,1]
    assert majority_element_voting(arr) == None