Esempio n. 1
0
def test_given_cases():
    assert hp.optimal_time(open('input000.txt').read()) == \
        float(open('output000.txt').read()), "test-case 0 failed"
    
    assert hp.optimal_time(open('input001.txt').read()) == \
        float(open('output001.txt').read()), "test-case 1 failed"
Esempio n. 2
0
def test_bad_lines():
    assert hp.optimal_time(open('crap_input.txt').read()) == \
        float(open('output000.txt').read()), "crap test-case 0 failed"