Mercurial > ~astiob > upreckon > hgweb
comparison testcases.py @ 89:3ae6cb69e4ef
Sample total is no longer printed if there are no samples
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 28 Feb 2011 15:10:40 +0000 |
parents | cd347cfca272 |
children | 1fb319ec33af |
comparison
equal
deleted
inserted
replaced
88:cd347cfca272 | 89:3ae6cb69e4ef |
---|---|
402 prob.config.groupweight = dict(enumerate(prob.config.groupweight)) | 402 prob.config.groupweight = dict(enumerate(prob.config.groupweight)) |
403 for group in prob.config.tests: | 403 for group in prob.config.tests: |
404 for i in group: | 404 for i in group: |
405 s = str(i).zfill(prob.config.padtests) | 405 s = str(i).zfill(prob.config.padtests) |
406 prob.cache.padoutput = max(prob.cache.padoutput, len(s)) | 406 prob.cache.padoutput = max(prob.cache.padoutput, len(s)) |
407 yield DummyTestContext() | 407 if prob.config.dummies: |
408 for i in prob.config.dummies: | 408 yield DummyTestContext() |
409 s = str(i).zfill(prob.config.paddummies) | 409 for i in prob.config.dummies: |
410 yield _types[prob.config.kind](prob, s, True, 0) | 410 s = str(i).zfill(prob.config.paddummies) |
411 yield problem.test_context_end | 411 yield _types[prob.config.kind](prob, s, True, 0) |
412 yield problem.test_context_end | |
412 for k, group in enumerate(prob.config.tests): | 413 for k, group in enumerate(prob.config.tests): |
413 if not group: | 414 if not group: |
414 continue | 415 continue |
415 yield problem.TestGroup(prob.config.groupweight.get(k, prob.config.groupweight.get(None))) | 416 yield problem.TestGroup(prob.config.groupweight.get(k, prob.config.groupweight.get(None))) |
416 for j, i in enumerate(group): | 417 for j, i in enumerate(group): |