예제 #1
0
def test_printLargest():
    l = longestLine()
    l.addString('1')
    l.addString('11')
    l.addString('111')
    assert l.returnLongest(2) == ['111', '11']
예제 #2
0
def test_calcLength():
    l = longestLine()
    string1 = 'This is a string'
    assert l.calcLength(string1) == 16