Mutations (Basic Algorithms) - Incorrect test case
See original GitHub issueThe challenge description states: Return true if the string in the first element of the array contains all of the letters of the string in the second element of the array.
According to that the case: mutation(["Mary",
"Aarmy"])
should return false because the first string has only one a character, therefore does not contain all of the characters of the second string.
Currently that test case returns true.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Using Test Case Mutation to Evaluate the Model of the User ...
Mutation based testing is used to discover new possible errors in software applications. This is since in this testing approach, intentional incorrect lines ......
Read more >Mutation Testing Approach to Negative Testing - Hindawi
In this paper, a mutation testing-based approach addressing the problem of providing negative test cases for testing software systems is presented.
Read more >Test Case Generation for Mutation-based Testing of Timeliness
The simulator is then iteratively executed using a genetic algorithm to find input se- quences that reveal the potential failures in the mutated...
Read more >Mutation testing - Wikipedia
Mutation testing is used to design new software tests and evaluate the quality of existing software tests. Mutation testing involves modifying a program...
Read more >Increasing Software Reliability using Mutation Testing and ...
measured by mutation score, were used to update the algorithm and ... machine learning for mutation testing and test case selection.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree! If updating instructions is the route the members want us to go then I think it would make the most sense to just remove
mutation(["Mary", "Aarmy"])
from the acceptance criteria and not mention anything about duplicates in the instructions. This way there won’t be any confusion. If it’s left in, then I would assume I would have to solve for this use case. As you said it’s more a beginner challenge so this may add some unwanted complexity to deal with duplicates at this level.@erictleung well I do agree that the test is okay, I don’t necessarily think that phrasing clarifies it. A subset generally means that all of the second string would be in the first one, which brings us back to Aarmy not fitting into Mary but line still working for Alien.