Beta
File/Folder JSON Tree Formatting
15gelus
Loading description...
JSON
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
The random tests are not random at all, they just shuffles the same input and run multiple times.
Also, mutating the input breaks all the tests, because there are no fixed tests.
Additional random tests have been added.
Mutating the input has been addressed via coppying the randomized array and create a fixed structure from it.
Hi,
the initial solution contains two typos:
..., typed; ...
->..., type: ...
I'm getting this with the full test suite:
Thank you for your contribution, I've address these issues.
https://www.codewars.com/kata/reviews/65a0921e3e02f70001ea7376/groups/65a17fcacc516d0001105ac5
Oooh, that's funny. Quite cheeky.
I've adjusted the tests to account of manipulation of the original array.
Please add
chai.config.truncateThreshold = 0;
to the test code, otherwise the expected and actual values are hidden.Good Suggestion, configuration has been added
Error when submitting solution:
What is the second argument to format() for ?
This comment has been hidden.
Found the issue and have resolved it. Thank you for you contribution.
This is insufficient; for example,
would be valid in this definition but does not form a valid tree.
Verbage updated. Thank you for you contribution.