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