test_example.py 369 Bytes
Newer Older
1
2
3
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

4
5
6
7
8
"""Test example.

Get it from https://docs.pytest.org/en/stable/.
"""

9
10

def inc(x):
11
12
13
14
15
16
17
18
    """Increase an integer.

    Args:
        x (int): Input value.

    Returns:
        int: Increased value.
    """
19
20
21
22
    return x + 1


def test_answer():
23
    """Test inc function."""
24
    assert inc(3) == 4