Exemple #1
0
def starter():
	print "------- TASK #1 -------"
	print INPUT
	print " >> "
	print hw4_solution1.solution1("INPUT")
	print "------- TASK #2 -------"
	print INPUT
	print " >> "
	print hw4_solution2.solution2(INPUT, 34)
Exemple #2
0
def tests_for_solution2():
    u"""Tests for task 2"""
    text = "Proin eget tortor risus."
    assert hw4_solution2.solution2(INPUT) == "Proin..."
    assert hw4_solution2.hw4_solution2(text) == "Proin eget tortor risus."
    assert hw4_solution2.solution2(text, 24) == "Proin eget tortor risus."
    assert hw4_solution2.solution2(text, 23) == "Proin eget tortor..."
    assert hw4_solution2.solution2(text, 13) == "Proin eget..."
    assert hw4_solution2.solution2(text, 6) == "Pro..."
Exemple #3
0
def tests_for_solution2():
	u"""Tests for task 2"""
	text = "Proin eget tortor risus."
	assert hw4_solution2.solution2(INPUT) == "Proin..."
	assert hw4_solution2.hw4_solution2(text) == "Proin eget tortor risus."
	assert hw4_solution2.solution2(text, 24) == "Proin eget tortor risus."
	assert hw4_solution2.solution2(text, 23) == "Proin eget tortor..."
	assert hw4_solution2.solution2(text, 13) == "Proin eget..."
	assert hw4_solution2.solution2(text, 6) == "Pro..."
Exemple #4
0
def starter():
    print "------- TASK #1 -------"
    print INPUT
    print " >> "
    print hw4_solution1.solution1("INPUT")
    print "------- TASK #2 -------"
    print INPUT
    print " >> "
    print hw4_solution2.solution2(INPUT, 34)