Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Fixed tests added
I added fixed tests and the testcase with 0 added to those tests.
The random tests generate votes with number of votes equal to 0. If it's intended behavior:
(FFS WHAT ARE DOING THE OTHER BETA TESTERS !???)
The example tests have to be present at the beginning of the full test suite.
(FFS, what are doing the other beta testers!??)
ok, I read "all votes" as "all people", actually. Not sure if it's on me or my frenglish or anything else.
The whole problem is a mix of tiny "misunderstandings" accumulated on both sides (reader/writer), I think.
Basically, what you're asking for is something along the line of:
I'd also detail the "some votes are ambigous" case to highlight this, so that you can avoid misinterpretations of the task.
I think it is quite clear, and I don't know how it could be misinterpreted so we probably understand the same sentence differently. I also am not a native speaker and don't know how to make it better :/
The way I understand what I wrote:
(for example "Yes", "No")
so the resulting dictionary must have all the keys. { 'Yes' :... , No:... }
It means that for example we cannot deduce that any particular person has voted the option 'Yes'.
then the value in the result should be empty set. For example: { 'Yes': set(), ... }
But this doesn't resolve the issue: the description is currently incomplete at best, or wrong at worst.
(well, could be considered another issue)
Both examples are indeed similar. In the second example there are two possible votings that could result in 'No': 13157, 'What': 16375.
They are:
So Mia is the only person who's vote we can deduce. So the correct answer is
'What':{'Mia'}
You were correct about the test code being vulnerable to user code modyfing input structures. I have fixed that.
side effect: I actually think you should give an actual explanation (in the description) of the "some votes are ambiguous" case, because I think that's what I'm missing.
edit: ...and if I understand correctly the expected output of this test, it seems to me this is a direct contradiction with this sentence of the description:
A first step would be to add a very first test stating "a solution exists but your code didn't find it", or equivalent. Currently, one gets feedback about the groups when the default output is returned, which is also misleading.
Also, double check the messages are built with data structures that have not been mutated, otherwise they are pretty useless (I'd bet on that, currently)
Are you sure the example tests are correct...? In the "some ambiguous" case:
Similar (?) kind of problems in the full test suite:
How could Mia be the only person in the set while 3218!=16375?
Double check the assertion message are built correctly (like, they are showing the actual returned set, as implied by the message,eand not the difference of actual vs expected or something like that). Or maybe actual and expected are swapped?
This comment is hidden because it contains spoiler information about the solution
Great kata...
Added this sentence to output part:
"e.g.": I'm not english native, sorry => ok.
About the spec, what I meant is that you should state the output kind you expect. Formally, anything from an ampety dict to None or what you currently use could be acceptable. Or even, raising an error. => Just clarify it's a dict with empty sets.
You can close the issue after that.
Loading more items...