diff --git a/tests/FuzzyTest.php b/tests/FuzzyTest.php new file mode 100644 index 0000000..09d4fad --- /dev/null +++ b/tests/FuzzyTest.php @@ -0,0 +1,31 @@ +assertContains('Espresso', $result); + $this->assertNotContains('Mocha', $result); + } + + public function testLevenshteinDistance(): void + { + $str1 = 'Almond'; + $str2 = 'Coconut'; + + $result = Utility::levenshteinDistance($str1, $str2); + + $this->assertEquals(5, $result); + } +}