Last active
December 24, 2023 16:04
-
-
Save mcsee/ab38f62dcecbe3f1a421f4eddca93b9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
function test08LeftPatternMiddleOfRightOneShouldBeSimplified() { | |
$this->assertEquals( | |
['house'], | |
(new LikePatternSimplifier())->simplify | |
(['house', 'casahousecasa'])); | |
} | |
function test09RightPatternMiddleOfLeftOneShouldBeSimplified() { | |
$this->assertEquals( | |
['medio'], | |
(new LikePatternSimplifier())->simplify( | |
['enmediodetodo', 'medio'])); | |
} | |
function test10RightPatternMiddleOfLeftOneUnrelatedShouldBeSimplified() { | |
$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