You are here

public function TimeEfficientImplementationTest::testEqualSequences in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\LCS

Code

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);
  }
}