Ejemplo n.º 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)

Ejemplo n.º 2
0
def test_square_minus_1():
    assert square(-1) == 1
Ejemplo n.º 3
0
def test_square_2():
    assert square(2) == 4
Ejemplo n.º 4
0
def test_square_1():
    assert square(1) == 1
Ejemplo n.º 5
0
def test_square_0():
    assert square(0) == 0
Ejemplo n.º 6
0
def test_square_0(x, y):
    assert square(x) == y