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:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r67:b65f81409564 - - 1 file changed: 8 inserted, 6 deleted

@@ -113,12 +113,14
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 - run.tests.each do |t|
116 + if run.tests!=nil
117 - if test_present[t] == false
117 + run.tests.each do |t|
118 - test_present[t] = true
118 + if test_present[t] == false
119 - else
119 + test_present[t] = true
120 - puts "test #{t} is present in more than one run"
120 + else
121 - return false
121 + puts "test #{t} is present in more than one run"
122 + return false
123 + end
122 end
124 end
123 end
125 end
124 end
126 end
You need to be logged in to leave comments. Login now