[Feature request] edit test case
On web, we can edit test case. Can cli support this feature?
Thanks for your consideration.
If i'm not mistaken, we can go with leetcode edit
Thanks @clearloop ,
edit -> edit code, which is for submission.
My ask is about: edit test code, aka test case, test input code.
Thanks @clearloop ,
edit -> edit code, which is for submission.
My ask is about: edit test code, aka test case, test input code.
you can change the test case by provide a cli param like:
leetcode t 58 '"a"'
Thanks, @junjiexh . How to test if it has mulit parameters?
eg leetcode t 1 '[2,7,11,15] 9' [INFO leetcode_cli::plugins::leetcode] Sending code to judge... -> Runtime Error [2,7,11,15] 9 is not a valid value of type integer[]
Is it possible to document it?
Thanks, @junjiexh . How to test if it has mulit parameters?
eg leetcode t 1 '[2,7,11,15] 9' [INFO leetcode_cli::plugins::leetcode] Sending code to judge... -> Runtime Error [2,7,11,15] 9 is not a valid value of type integer[]
Is it possible to document it?
If I remember correctly, you can try this:
leetcode t 1 '[2,7,11,15]\n9'
Thanks, @junjiexh .
Q1: is there a way to list the existing test cases? Eg, for the two sum problem, how to list these 3 default test cases using the cli?
Q2: how to run the first 2 test cases (in one commnad) using the cli?
etc is
leetcode t 1 '[2,7,11,15]\n9\n[3,2,4]\n6'
correct?