public function TimeEfficientImplementationTest::testEqualSequences in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/sebastian/diff/tests/LCS/TimeEfficientImplementationTest.php \SebastianBergmann\Diff\LCS\TimeEfficientImplementationTest::testEqualSequences()
File
- vendor/
sebastian/ diff/ tests/ LCS/ TimeEfficientImplementationTest.php, line 70
Class
- TimeEfficientImplementationTest
- Some of these tests are volontary stressfull, in order to give some approximative benchmark hints.
Namespace
SebastianBergmann\Diff\LCSCode
public function testEqualSequences() {
foreach ($this->stress_sizes as $size) {
$range = range(1, $size);
$from = $range;
$to = $range;
$common = $this->implementation
->calculate($from, $to);
$this
->assertEquals($range, $common);
}
}