We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe7e7c commit 6995142Copy full SHA for 6995142
autoload/leetcode.vim
@@ -1056,6 +1056,16 @@ function! s:CheckRunCodeTask(timer) abort
1056
1057
if task_name == 'test_solution' || task_name == 'submit_solution'
1058
if type(task_output) == v:t_dict
1059
+ if task_name == 'test_solution'
1060
+ if task_output['state'] == 'Finished' &&
1061
+ \task_output['answer'] != task_output['expected_answer']
1062
+ let task_output['state'] = 'Wrong Answer'
1063
+ endif
1064
+ elseif task_name == 'submit_solution'
1065
+ if task_output['state'] == 'Finished'
1066
+ let task_output['state'] = 'Accepted'
1067
1068
1069
call s:ShowRunResultInPreview(task_output)
1070
endif
1071
else
0 commit comments