vscode-leetcode
vscode-leetcode copied to clipboard
Custom Test Case is not being parsed correctly and the api is throwing incorrect data format error
🐛 Bug Report
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior.
Hello team, When i try to add my custom test cases in any kind of problem, (string, int, float etc..), its failing to validate the datatype correctly.

Expected behavior
A clear and concise description of what you expected to happen.
Extension Output
- Sending code to judge
(node:1172) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use
node --trace-warnings ...
to show where the warning was created) - Waiting for judge result ✘ Runtime Error ✘ Error: [[[[[[[[[[[[[ is not a valid value of type string ✘ Error: [[[[[[[[[[[[[ is not a valid value of type string ✘ Your Input: [[[[[[[[[[[[[ ✘ Output (N/A): ✘ Expected Answer: ✘ Stdout:
Your Environment
- os: MacOS 12.3.1
- extension settings:
- nodejs version: 16.13.0
- vscode version: 1.66.2
- extension version: v0.18.0
If you want to input string type data, you should add _\n_at the end
Take "[[[[[[[" as an example, you should enter
"[[[[[[["\n
If there are multiple lines of data of type string, then it should be
""aba"\n"ac""
\n
is the correct key!