Description:
fixed judge craching when some test case is not present
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@367 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r67:b65f81409564 - - 1 file changed: 8 inserted, 6 deleted
@@ -113,12 +113,14 | |||
|
113 | 113 | end |
|
114 | 114 | (1..(@runs.length-1)).each do |j| |
|
115 | 115 | run = @runs[j] |
|
116 |
- run.tests |
|
|
117 | - if test_present[t] == false | |
|
118 |
- test_present[t] = |
|
|
119 | - else | |
|
120 | - puts "test #{t} is present in more than one run" | |
|
121 | - return false | |
|
116 | + if run.tests!=nil | |
|
117 | + run.tests.each do |t| | |
|
118 | + if test_present[t] == false | |
|
119 | + test_present[t] = true | |
|
120 | + else | |
|
121 | + puts "test #{t} is present in more than one run" | |
|
122 | + return false | |
|
123 | + end | |
|
122 | 124 | end |
|
123 | 125 | end |
|
124 | 126 | end |
You need to be logged in to leave comments.
Login now