TheAlgorithms / PHP

All Algorithms implemented in PHP
MIT License
2.14k stars 467 forks source link

Added code for findng no of homogenous substrings #146

Closed niharikamahajan02 closed 5 months ago

darwinz commented 10 months ago

The test is throwing an exception. Please look into it.

niharikamahajan02 commented 10 months ago

I am not able to get is the error in test function?

darwinz commented 10 months ago

I am not able to get is the error in test function?

If you run the following, you should see the error.

vendor/bin/phpunit tests
darwinz commented 8 months ago

Failed unit tests. Please fix your unit test.

There was 1 failure:

1) StringsTest::testCountHomogenous
Failed asserting that 10 matches expected 3.

/home/runner/work/PHP/PHP/tests/Strings/StringsTest.php:87
phpvfscomposer:///home/runner/work/PHP/PHP/vendor/phpunit/phpunit/phpunit:106