File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -286,8 +286,7 @@ def apply(self, item):
286
286
"""
287
287
def _name2path (name ):
288
288
if not name .startswith (self .path_prefix ):
289
- raise ConstraintError (
290
- "Solution %s is not a path variable" % name )
289
+ return name
291
290
return name [len (self .path_prefix ):].replace ('_' , '/' )
292
291
293
292
t = self ._choose ()
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ def __repr__(self):
45
45
for line in self .trace :
46
46
if isinstance (line , ast .Compare ):
47
47
s = str (line .ops [0 ].__class__ .__name__ )
48
+ elif isinstance (line , ast .Call ):
49
+ s = line .func .id
48
50
else :
49
51
s = line .value .func .id
50
52
lines .append (s )
Original file line number Diff line number Diff line change 1
1
- name : option
2
- target : option
3
- tree : |
4
- if self is Integer:
5
- if self < 0:
2
+ oracle : |
3
+ if option is Integer:
4
+ if option < 0:
6
5
return FAIL('Min input is 0')
7
- elif self > 9223372036854775808:
6
+ elif option > 9223372036854775808:
8
7
return FAIL('Number overflow')
9
- elif self > 1000:
8
+ elif option > 1000:
10
9
return FAIL('Max input is 1000')
11
10
else:
12
- return PASS ()
11
+ return SUCCESS ()
13
12
else:
14
13
return FAIL('Invalid number')
Original file line number Diff line number Diff line change @@ -32,3 +32,4 @@ commands =
32
32
deps =
33
33
-rrequirements.txt
34
34
sphinx
35
+ sphinx_rtd_theme
You can’t perform that action at this time.
0 commit comments