Beta
Social Golfer Problem Validator V2
Loading description...
Fundamentals
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.
Python new test framework should be used (Refer this for more detail)
nope not resolved at all. What you did is only use more hardcoded tests: they are all fixed. That's what hard coded means.
Random tests have to be generated... randomly... on the fly. Different for each tests.
And here is what I did: as you can see, I commented out MOST of the conditions and my solution still passes the tests. So you should take it as a base, uncommenting/commenting out the different parts to catch test cases that make it fail for each commented out condition (EDIT: some conditions are crossing each others, though. I have a bit of overchecking, in there)
Then, you will be able to see how you generate the random tests.
test to add:
[['AA']] => False
Whenever I come across this I just post this pic (it's worth a thousand words):
x)
;)
Needs random tests
http://mathworld.wolfram.com/KirkmansSchoolgirlProblem.html
I'm not sure how this would work, because valid solutions are extremely difficult to come up with. The math behind that is well out of my league. I would like to add a solution where V is higher than 15 but I'm having a tough time generating even one of those.
permutations of columns, and rows, and characters in the strings, and replacing charcters by different sets. All of that using the current set of tests. Nothing difficult about that. ;)
I misunderstood what a random test was, I thought they would randomly generate themselves. I definitely could use more tests. I just added more tests and will add some more when I get a chance
Thanks for the feedback!
as long as you do provide tests that return True and others that return false and that aren't hardcoded, that's good. ;)
What do you mean by hardcoded? As in that the user can't see?
resolved I think
Please populate the initial code section ;-)
done, thank you