Hello all,
strangely enough, my (Javascript) code passes all test cases and all validation tests but one: “Block without spaces not containing a value”.
This is strange, because you’d presume from the title that this means having an empty “()” block, which is covered by the test cases named “Empty block” (alone) and “Full example” (inside another block), that my code passes.
Any idea what this validation test actually is ? I cannot decently stay with 95% success
Hi all !
Like some people in this thread, I was blocked at post-submission tests, namely :
Valeur booléenne avec espaces blancs (Boolean value with spaces)
Simple clé/valeur avec espaces blancs (Simple key/value with spaces)
Bloc avec espaces blancs contenant une valeur (Block with spaces containing a value)
Until I discovered this : Non-string values (true, false, null) can have white spaces inside, and these white spaces should be removed.
For example :
tr ue
should be replaced by
true
I’ve got the same problem here, I don’t know if you found a solution for that problem since you posted the post. I assume it is a test case like ‘()’ as well, but I’m not sure.
hi, my code also doesn’t work for “simple key/value with spaces”… it works in all other cases… can u give some examples with expected output…please help
there is no need to create some tree / map structure to save parsed keys and values, and that’s a pity
this task can be solved much easier when treating ()=; symbols like formatting characters for output
and the case / switch operator i wrote to solve this puzzle is even easier than one for depressed robot
My solution is a multiple-pass one but does not encounter timeout (I used Java). I removed all space types of characters including new line characters but excluding those in a string in the first pass. I then process the formats.
Wow, thanks a lot. The test says “Block without spaces not containing a value”, but there is a space between the parentheses. It is kind of confusing, but still thanks a lot
Reading the discussion helped me to resolve this case Block with spaces containing a value But I’m still stuck with Block without spaces not containing a value. I don’t really understand the difference with the Full example testcase.
I reviewed all the previous answers but none seemed to address this point specifically.
I can’t pass the test:
“Simple string of characters which must not be modified”.
I tried everything:
Tabs and Whitespaces before the string of characters. I remove them preemptively.
Preserve Tabs, Whitespaces and even NewLines in a string of characters. I preserve them, checked everycase I could imagine. I even tried it on KeyValues instead of PrimaryValues only.
Tabs and WhiteSpaces after the string of characters. I remove them preemptively.
Can someone, exemplify or explain what is this test??
Thanks in advance for the time reviewing this post.
Hi, my code is also failing on that single test : “simple key/value with spaces”.
But I am confused with the fact spaces/tabs should be removed from key-values containing them, since the specs state that the content of character strings should not be altered.
if anybody can give pointers on this… thanks a lot, help much appreciated (-:
I pass everything but
Boolean value with spaces
Empty string of characters with spaces
I have no idea whts wrong.
I’ve tested everything I found in this forum. All was good.
If someone can give me an example for these two so i can see
whats going on, that would be very nice.
Greetz