test_example.py 537 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
import superbench

11
12

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

    Args:
        x (int): Input value.

    Returns:
        int: Increased value.
    """
21
22
23
24
    return x + 1


def test_answer():
25
    """Test inc function."""
26
    assert inc(3) == 4
27
28
29
30
31
32


def test_superbench():
    """Test SuperBench."""
    assert (superbench.__version__ == '0.0.0')
    assert (superbench.__author__ == 'Microsoft')