示例#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
def test_square_0(x, y):
    assert square(x) == y