vscode-leetcode icon indicating copy to clipboard operation
vscode-leetcode copied to clipboard

Unable input string as test case use file

Open voidweapon opened this issue 3 years ago • 4 comments

🐛 Bug Report

Platform: Windows One single line like ""abcabcbb"" can work. but Multiline cause error, input like follow: case 1: ""abcabcbb"" ""abcabcbb""

Runtime Error Error "abcabcbb"" is not a valid value of type string "abcabcbb"" is not a valid value of type string Your Input "abcabcbb"" "abcabcbb"


case 2 "\"XX\"" "\"bacdgf\""

Runtime Error Error \XX\" is not a valid value of type string \XX\" is not a valid value of type string Your Input \XX\" "\bacdgf\

voidweapon avatar Sep 23 '21 06:09 voidweapon

I believe you do something like this ["abcabcbb"\n"abcabcbb" ], make sure there is a space at the end, and without the []

AkaCoder404 avatar Feb 28 '22 10:02 AkaCoder404

I believe you do something like this ["abcabcbb"\n"abcabcbb" ], make sure there is a space at the end, and without the []

"make sure there is a space at the end" this thing is Not enough grace

NominationP avatar Jun 29 '22 02:06 NominationP

I believe you do something like this ["abcabcbb"\n"abcabcbb" ], make sure there is a space at the end, and without the []

if I want to input ---> " " add space at the end is not work

“ ” is not a valid value of type string

NominationP avatar Jun 29 '22 02:06 NominationP

What I do know is

 "abc"\n "abc"

with a space in the beggining and space before the breakline

AkaCoder404 avatar Jun 29 '22 11:06 AkaCoder404