Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active Jun 27, 2021
Embed
What would you like to do?
<?
function test08LeftPatternMiddleOfRightOneShouldBeSimplified() {
$this->assertEquals(
['house'],
(new LikePatternSimplifier())->simplify(['house', 'casahousecasa']));
}
function test09RightPatternMiddleOfLeftOneShouldBeSimplified() {
$this->assertEquals(
['medio'],
(new LikePatternSimplifier())->simplify(['enmediodetodo', 'medio']));
}
function test10RightPatternMiddleOfLeftOneAnotherUnrelatedShouldBeSimplified() {
$this->assertEquals(
['medio', 'nada'],
(new LikePatternSimplifier())->simplify(['enmediodetodo', 'medio', 'nada']));
}
//Test data were suggested by Spanish speaking QA Engineers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment