question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mutations (Basic Algorithms) - Incorrect test case

See original GitHub issue

The 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:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
donofriovcommented, Feb 21, 2017

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.

0reactions
donofriovcommented, Feb 22, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found