-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
18 lines (14 loc) · 686 Bytes
/
test.py
File metadata and controls
18 lines (14 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#-*- coding: utf8 -*-
class Test(object):
"""Class represents an input and reference output for a single test."""
def __init__(self, *args, **kwargs):
self.input = kwargs.get('input')
self.output = kwargs.get('output')
self.memoryLimit = kwargs.get('memoryLimit')
self.timeLimit = kwargs.get('timeLimit')
self.isSampleTest = kwargs.get('isSampleTest')
def __repr__(self):
out = "Test(input={}, output={}, memoryLimit={}, " \
+ "timeLimit={}, isSampleTest={})"
return out.format(self.input.strip(), self.output.strip(),
self.memoryLimit, self.timeLimit, self.isSampleTest)