checkers
This commit is contained in:
parent
44ee8f15b7
commit
c82fc75f70
@ -120,12 +120,12 @@ class BaseTester:
|
|||||||
).text.strip().replace('\r\n', '\n')
|
).text.strip().replace('\r\n', '\n')
|
||||||
print('predicted:', self.predicted)
|
print('predicted:', self.predicted)
|
||||||
self.solution.test = int(test.filename)
|
self.solution.test = int(test.filename)
|
||||||
|
self.solution.extras[test.filename] = {'predicted': test.text, 'output': ''}
|
||||||
self.solution.save()
|
self.solution.save()
|
||||||
try:
|
try:
|
||||||
with Timer(self.solution, test.filename) as timer:
|
with Timer(self.solution, test.filename) as timer:
|
||||||
self.test(test.filename)
|
self.test(test.filename)
|
||||||
finally:
|
finally:
|
||||||
self.solution.extras[test.filename]['predicted'] = test.text
|
|
||||||
if exists(join(self.path, "output.txt")):
|
if exists(join(self.path, "output.txt")):
|
||||||
try:
|
try:
|
||||||
self.solution.extras[test.filename]['output'] = open(join(self.path, 'output.txt'), 'r').read()
|
self.solution.extras[test.filename]['output'] = open(join(self.path, 'output.txt'), 'r').read()
|
||||||
|
Loading…
Reference in New Issue
Block a user