# -*- coding: utf-8 -*-

import calculator
import pytest


def func_ids(params):
    return 'Param1={},Param2={}, Result={}'. \
        format(params[0], params[1], params[2])


subtraction_lists = (
    [0, 0, 0],
    [1, 1, 0],
    [10, 5, 5])


@pytest.fixture(params=subtraction_lists, ids=func_ids)
def subtraction_task(request):
    return request.param


def test_subtraction_normal(subtraction_task):
    cal = calculator.Calculator()
    result = cal.subtraction(subtraction_task[0], subtraction_task[1])
    assert result == subtraction_task[2]
