コード例 #1
0
ファイル: main.py プロジェクト: rmotr/001_ITP_G2
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
コード例 #6
0
def test_square_0(x, y):
    assert square(x) == y