@@ -39,34 +39,34 @@ pub(crate) fn execute_testcases<P: AsRef<Path>>(
3939 ExecutionResult :: PendingResult ( pending) => {
4040 bail ! ( pending. state) ;
4141 }
42+ ExecutionResult :: WrongTestcase ( wrong_testcase) => bail ! ( wrong_testcase) ,
4243 ExecutionResult :: Unknown ( _) => {
4344 bail ! ( "Unknown" ) ;
4445 }
4546 }
4647 }
47- None => {
48- match lc. execute_default ( & code_file) ? {
49- ExecutionResult :: Success ( result) => {
50- println ! ( "{}" , result) ;
51- return Ok ( ( result. is_correct ( ) , code_file) ) ;
52- }
53- ExecutionResult :: LimitExceeded ( limit_exceeded) => {
54- bail ! ( limit_exceeded) ;
55- }
56- ExecutionResult :: CompileError ( compile_error) => {
57- bail ! ( compile_error) ;
58- }
59- ExecutionResult :: RuntimeError ( runtime_error) => {
60- bail ! ( runtime_error) ;
61- }
62- ExecutionResult :: PendingResult ( pending) => {
63- bail ! ( pending. state) ;
64- }
65- ExecutionResult :: Unknown ( _) => {
66- bail ! ( "Unknown error" ) ;
67- }
48+ None => match lc. execute_default ( & code_file) ? {
49+ ExecutionResult :: Success ( result) => {
50+ println ! ( "{}" , result) ;
51+ return Ok ( ( result. is_correct ( ) , code_file) ) ;
6852 }
69- }
53+ ExecutionResult :: LimitExceeded ( limit_exceeded) => {
54+ bail ! ( limit_exceeded) ;
55+ }
56+ ExecutionResult :: CompileError ( compile_error) => {
57+ bail ! ( compile_error) ;
58+ }
59+ ExecutionResult :: RuntimeError ( runtime_error) => {
60+ bail ! ( runtime_error) ;
61+ }
62+ ExecutionResult :: PendingResult ( pending) => {
63+ bail ! ( pending. state) ;
64+ }
65+ ExecutionResult :: WrongTestcase ( wrong_testcase) => bail ! ( wrong_testcase) ,
66+ ExecutionResult :: Unknown ( _) => {
67+ bail ! ( "Unknown error" ) ;
68+ }
69+ } ,
7070 }
7171}
7272
0 commit comments