Beispiel #1
0
def test_char_median():
    with raises(TypeError):
        mymedian(['a', 3])
Beispiel #2
0
def test_zero_median():
    with raises(ValueError):
        mymedian([])
Beispiel #3
0
def test_mymath():
    assert mymedian([9,3, 6]) == 6
Beispiel #4
0
def test_char_median():
    with raises(TypeError):
        mymedian(['a', 3])
Beispiel #5
0
def test_zero_median():
    with raises(ValueError):
        mymedian([])
Beispiel #6
0
def test_mymath():
    assert mymedian([9, 3, 6]) == 6