예제 #1
0
def test_smallest_divisible_1_20():
    assert smallest_divisible(1, 20) == 232792560
예제 #2
0
def test_smallest_divisible_1_10():
    assert smallest_divisible(1, 10) == 2520
예제 #3
0
def test_smallest_divisible_zero_or_less_args(arg1, arg2):
    with pytest.raises(ValueError):
        smallest_divisible(arg1, arg2)
예제 #4
0
def test_smallest_divisible_range_low_larger_than_range_high():
    with pytest.raises(ValueError):
        smallest_divisible(2, 1)
예제 #5
0
def test_smallest_divisible_non_int_args(arg1, arg2):
    with pytest.raises(TypeError):
        smallest_divisible(arg1, arg2)