@@ -237,8 +237,8 @@ pub struct VerifyResult {
237
237
pub state : String ,
238
238
#[ serde( skip) ]
239
239
pub name : String ,
240
- #[ serde( skip) ]
241
- pub data_input : String ,
240
+ // #[serde(skip)]
241
+ // pub data_input: String,
242
242
#[ serde( skip) ]
243
243
pub result_type : Run ,
244
244
// #[serde(default)]
@@ -258,7 +258,7 @@ pub struct VerifyResult {
258
258
#[ serde( default , deserialize_with = "ssr" ) ]
259
259
expected_output : Vec < String > ,
260
260
#[ serde( default , deserialize_with = "ssr" ) ]
261
- std_output : Vec < String > ,
261
+ std_output_list : Vec < String > ,
262
262
263
263
// flatten
264
264
// #[serde(flatten, default)]
@@ -295,12 +295,10 @@ impl std::fmt::Display for VerifyResult {
295
295
// Pass Tests
296
296
write ! (
297
297
f,
298
- "\n {}{}{}\n {}{}{}{}{}{} \n " ,
298
+ "\n {}{}{}\n {}{}{}{}\n " ,
299
299
& self . status. status_msg. green( ) . bold( ) ,
300
300
& "Runtime: " . before_spaces( 7 ) . dimmed( ) ,
301
301
& self . status. status_runtime. dimmed( ) ,
302
- & "\n Your input:" . after_spaces( 4 ) ,
303
- & self . data_input. replace( '\n' , "↩ " ) ,
304
302
& "\n Output:" . after_spaces( 8 ) ,
305
303
ca,
306
304
& "\n Expected:" . after_spaces( 6 ) ,
@@ -376,12 +374,10 @@ impl std::fmt::Display for VerifyResult {
376
374
// Wrong Answer during testing
377
375
write ! (
378
376
f,
379
- "\n {}{}{}\n {}{}{}{}{}{} \n " ,
377
+ "\n {}{}{}\n {}{}{}{}\n " ,
380
378
"Wrong Answer" . red( ) . bold( ) ,
381
379
" Runtime: " . dimmed( ) ,
382
380
& self . status. status_runtime. dimmed( ) ,
383
- & "\n Your input:" . after_spaces( 4 ) ,
384
- & self . data_input. replace( '\n' , "↩ " ) ,
385
381
& "\n Output:" . after_spaces( 8 ) ,
386
382
ca,
387
383
& "\n Expected:" . after_spaces( 6 ) ,
@@ -419,13 +415,7 @@ impl std::fmt::Display for VerifyResult {
419
415
self . expected_output[ 0 ] ,
420
416
) ?,
421
417
// Memory Exceeded
422
- 12 => write ! (
423
- f,
424
- "\n {}\n \n {}{}\n " ,
425
- & self . status. status_msg. yellow( ) . bold( ) ,
426
- & "Last case:" . after_spaces( 5 ) . dimmed( ) ,
427
- & self . data_input. replace( '\n' , "↩ " ) ,
428
- ) ?,
418
+ 12 => write ! ( f, "\n {}\n \n " , & self . status. status_msg. yellow( ) . bold( ) , ) ?,
429
419
// Output Timeout Exceeded
430
420
//
431
421
// TODO: 13 and 14 might have some different,
@@ -475,12 +465,12 @@ impl std::fmt::Display for VerifyResult {
475
465
}
476
466
}
477
467
_ => {
478
- if !self . std_output . is_empty ( ) {
468
+ if !self . std_output_list . is_empty ( ) {
479
469
write ! (
480
470
f,
481
471
"{}{}" ,
482
472
& "Stdout:" . after_spaces( 8 ) . purple( ) ,
483
- & self . std_output [ 0 ] . replace( '\n' , & "\n " . after_spaces( 15 ) )
473
+ & self . std_output_list [ 0 ] . replace( '\n' , & "\n " . after_spaces( 15 ) )
484
474
)
485
475
} else {
486
476
write ! ( f, "" )
0 commit comments