ianding1 / leetcode.vim

Solve LeetCode problems in Vim!
MIT License
308 stars 43 forks source link

Changed the index for the slug in file_name, fix for #31 #32

Closed Wilnath closed 4 years ago

Wilnath commented 4 years ago

Filenames are named using printf('%s.%s.%s', problem_id, s:SlugToFileName(problem_slug), problem_ext), but TestSolution() expected the problem_slug to be the zeroth index. Simply changed index from 0 to 1.

ianding1 commented 4 years ago

Thank you so much for pinpointing the problem, but to fix it we need to consider all the cases that can go wrong, not only TestSolution. Please check this out 4aaec9fd5c0b0dd8061cec

Wilnath commented 4 years ago

That looks much better. I'll close this