ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMathTest Class Reference
+ Inheritance diagram for ilMathTest:
+ Collaboration diagram for ilMathTest:

Public Member Functions

 testGcd (string $a, string $b, string $result)
 gcdData More...
 
 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()

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

Definition at line 47 of file ilMathTest.php.

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

◆ 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 
)

gcdData

Definition at line 39 of file ilMathTest.php.

References ilMath\getGreatestCommonDivisor().

39  : void
40  {
41  $this->assertEquals($result, ilMath::getGreatestCommonDivisor($a, $b));
42  }
$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: