示例#1
0
import utest
import harsh

print "Executing program"
utest.oks()
示例#2
0
@ok
def fail_test():
    "Adding another test to check results"
    assert 1 == 2


@ok
def get_fib5():
    "To get the fibonacci number for 5th term in series"
    number = fib(5)
    print '5th term is fibonacci series is : %d' % number
    assert 5 == number


@ok
def get_fib100():
    "To get the fibonacci number for 100th term in series"
    number = fib(100)
    print '100th term is fibonacci series is : %d' % number
    assert number == 354224848179261915075


@ok
def get_fib3():
    number = fib(3)
    print '3rd term in the fibonacci series is : %d' % number
    assert number == 2


oks()