Description:
[grader] small tweak on one test case
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@168 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
r44:a07593cb07c4 - - 1 file changed: 1 inserted, 1 deleted
@@ -167,49 +167,49 | |||
|
167 | 167 | grader_should(:grade => 'test1_correct.c', |
|
168 | 168 | :on => problem, |
|
169 | 169 | :with => 'in1.txt', |
|
170 | 170 | :and_report => { |
|
171 | 171 | :graded_at= => nil, |
|
172 | 172 | :compiler_message= => '', |
|
173 | 173 | :grader_comment= => '', |
|
174 | 174 | :running_stat= => /template not found/, |
|
175 | 175 | :running_time= => nil, |
|
176 | 176 | :exit_status= => nil, |
|
177 | 177 | :memory_usage= => nil, |
|
178 | 178 | :save => nil}) |
|
179 | 179 | end |
|
180 | 180 | |
|
181 | 181 | it "should run test request and produce output file" do |
|
182 | 182 | problem = stub(Problem, |
|
183 | 183 | :id => 1, :name => 'test_normal') |
|
184 | 184 | grader_should(:grade => 'test1_correct.c', |
|
185 | 185 | :on => problem, |
|
186 | 186 | :with => 'in1.txt', |
|
187 | 187 | :and_report => { |
|
188 | 188 | :graded_at= => nil, |
|
189 | 189 | :compiler_message= => '', |
|
190 | 190 | :grader_comment= => '', |
|
191 | - :running_stat= => /0.0 sec./, | |
|
191 | + :running_stat= => /0.0\d* sec./, | |
|
192 | 192 | :output_file_name= => lambda { |fname| |
|
193 | 193 | File.exists?(fname).should be_true |
|
194 | 194 | }, |
|
195 | 195 | :running_time= => nil, |
|
196 | 196 | :exit_status= => nil, |
|
197 | 197 | :memory_usage= => nil, |
|
198 | 198 | :save => nil}) |
|
199 | 199 | end |
|
200 | 200 | |
|
201 | 201 | it "should clean up problem directory after running test request" do |
|
202 | 202 | problem = stub(Problem, |
|
203 | 203 | :id => 1, :name => 'test_normal') |
|
204 | 204 | grader_should(:grade => 'test1_correct.c', |
|
205 | 205 | :on => problem, |
|
206 | 206 | :with => 'in1.txt', |
|
207 | 207 | :and_report => { |
|
208 | 208 | :graded_at= => nil, |
|
209 | 209 | :compiler_message= => '', |
|
210 | 210 | :grader_comment= => '', |
|
211 | 211 | :running_stat= => nil, |
|
212 | 212 | :output_file_name= => nil, |
|
213 | 213 | :running_time= => nil, |
|
214 | 214 | :exit_status= => nil, |
|
215 | 215 | :memory_usage= => nil, |
You need to be logged in to leave comments.
Login now