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: 2 inserted, 0 deleted
@@ -113,6 +113,7 | |||||
|
113 | end |
|
113 | end |
|
114 | (1..(@runs.length-1)).each do |j| |
|
114 | (1..(@runs.length-1)).each do |j| |
|
115 | run = @runs[j] |
|
115 | run = @runs[j] |
|
|
116 | + if run.tests!=nil | ||
|
116 | run.tests.each do |t| |
|
117 | run.tests.each do |t| |
|
117 | if test_present[t] == false |
|
118 | if test_present[t] == false |
|
118 | test_present[t] = true |
|
119 | test_present[t] = true |
@@ -122,6 +123,7 | |||||
|
122 | end |
|
123 | end |
|
123 | end |
|
124 | end |
|
124 | end |
|
125 | end |
|
|
126 | + end | ||
|
125 | (1..(@num_tests)).each do |i| |
|
127 | (1..(@num_tests)).each do |i| |
|
126 | if test_present[i] == false |
|
128 | if test_present[i] == false |
|
127 | puts "test #{i} is not present" |
|
129 | puts "test #{i} is not present" |
You need to be logged in to leave comments.
Login now