You are here

public function MatrixUtilityTest::testCumulativeSum in Image Effects 8

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/MatrixUtilityTest.php \Drupal\Tests\image_effects\Unit\MatrixUtilityTest::testCumulativeSum()
  2. 8.2 tests/src/Unit/MatrixUtilityTest.php \Drupal\Tests\image_effects\Unit\MatrixUtilityTest::testCumulativeSum()

@covers ::cumulativeSum @dataProvider cumulativeSumProvider

File

tests/src/Unit/MatrixUtilityTest.php, line 75

Class

MatrixUtilityTest
Tests the matrix utility helper methods.

Namespace

Drupal\Tests\image_effects\Unit

Code

public function testCumulativeSum($input, $expected) {
  $this
    ->assertSame($expected, MatrixUtility::cumulativeSum($input));
}