import pytest


def add_function(a, b):
    return a + b


@pytest.mark.parametrize("a,b,expected", [(3, 5, 8), (-1, -3, -4), (10000, 10000, 20000)],
                         ids=["int", "minus", "bigint"])
def test_add(a, b, expected):
    assert add_function(a, b) == expected


@pytest.mark.parametrize("a", [0, 1, 20000])
@pytest.mark.parametrize("b", [-2, 10000, 0.4])
def test_foo(a, b):
    print("测试数据组合:a->%s,b->%s" % (a, b))
