Пример #1
0
import operations
from operations import square
from operations import *
from operations.packages_calculator.calculator.operations

print operations.multiply(3,2)

print square(3)

print power(2,3)

Пример #2
0
def test_square_minus_1():
    assert square(-1) == 1
Пример #3
0
def test_square_2():
    assert square(2) == 4
Пример #4
0
def test_square_1():
    assert square(1) == 1
Пример #5
0
def test_square_0():
    assert square(0) == 0
def test_square_0(x, y):
    assert square(x) == y