ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilMathTest Class Reference
+ Inheritance diagram for ilMathTest:
+ Collaboration diagram for ilMathTest:

Public Member Functions

 testGcd (string $a, string $b, string $result)
 

Static Public Member Functions

static gcdData ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

EvalMath $eval_math
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 24 of file ilMathTest.php.

Member Function Documentation

◆ gcdData()

static ilMathTest::gcdData ( )
static
Returns
array<int, array<string>>

Definition at line 45 of file ilMathTest.php.

45  : array
46  {
47  return [
48  ['1254', '5298', '6'],
49  ['41414124', '41414124', '41414124']
50  ];
51  }

◆ setUp()

ilMathTest::setUp ( )
protected

Definition at line 31 of file ilMathTest.php.

31  : void
32  {
33  $this->eval_math = new EvalMath();
34  }

◆ testGcd()

ilMathTest::testGcd ( string  $a,
string  $b,
string  $result 
)

Definition at line 37 of file ilMathTest.php.

References ilMath\getGreatestCommonDivisor().

37  : void
38  {
39  $this->assertEquals($result, ilMath::getGreatestCommonDivisor($a, $b));
40  }
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
static getGreatestCommonDivisor($a, $b)
+ Here is the call graph for this function:

Field Documentation

◆ $eval_math

EvalMath ilMathTest::$eval_math
protected

Definition at line 26 of file ilMathTest.php.


The documentation for this class was generated from the following file: