LeetCode-OpenSource / vscode-leetcode

Solve LeetCode problems in VS Code
https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-leetcode
MIT License
8.22k stars 652 forks source link

Creating Test cases error #937

Open vinyx1 opened 7 months ago

vinyx1 commented 7 months ago

🐛 Bug Report

A clear and concise description of what the bug is. I have typed a test case for Leetcode Problem 37. I copy pasted into VSCode, then copy pasted it back into a new test cases. When running, it gives me the following error: [ is not a valid value of type character[][]

To Reproduce

Try test case:

[
["4",".",".",".","3",".",".",".","."],
[".",".",".","6",".",".","8",".","."],
[".",".",".",".",".",".",".",".","1"],
[".",".",".",".","5",".",".","9","."],
[".","8",".",".",".",".","6",".","."],
[".","7",".","2",".",".",".",".","."],
[".",".",".","1",".","2","7",".","."],
["5",".","3",".",".",".",".","4","."],
["9",".",".",".",".",".",".",".","."]
]

Manually typed in: image

Copy pasted into VSCode (or any other text, e.g notepad, sticky notes...) and back into leetcode test cases image

image

Expected behavior

It should run, but is receiving [ is not a valid value of type character[][] error.