ILIAS  release_8 Revision v8.23
ilMathBCAdapterTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilMathBCAdapterTest:
+ Collaboration diagram for ilMathBCAdapterTest:

Public Member Functions

 powData ()
 
- Public Member Functions inherited from ilMathBaseAdapterTest
 testAdd (string $a, string $b, string $result, int $scale)
 addData More...
 
 testSub (string $a, string $b, string $result, int $scale)
 subData More...
 
 testMul (string $a, string $b, string $result, int $scale)
 mulData More...
 
 testDiv (string $a, string $b, string $result, int $scale)
 divData More...
 
 testSqrt (string $a, string $result, ?int $scale)
 sqrtData More...
 
 testPow (string $a, string $b, string $result, ?int $scale)
 powData More...
 
 testMod (string $a, string $b, string $result)
 modData More...
 
 testEquals (string $a, string $b, bool $result, ?int $scale)
 equalsData More...
 
 testCalculation (string $formula, string $result, int $scale)
 calcData More...
 
 testDivisionsByZero ()
 
 testModuloByZero ()
 
 addData ()
 
 subData ()
 
 mulData ()
 
 divData ()
 
 modData ()
 
 sqrtData ()
 
 powData ()
 
 equalsData ()
 
 calcData ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilMathBaseAdapterTest
 setUp ()
 

Additional Inherited Members

- Protected Attributes inherited from ilMathBaseAdapterTest
const DEFAULT_SCALE = 50
 
ilMathAdapter $mathAdapter
 
EvalMath $evalMath
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 21 of file ilMathBCAdapterTest.php.

Member Function Documentation

◆ powData()

ilMathBCAdapterTest::powData ( )
Returns
array

Definition at line 39 of file ilMathBCAdapterTest.php.

39  : array
40  {
41  return array_merge([
42  ['2', '64', '18446744073709551616', null],
43  ], parent::powData());
44  }

◆ setUp()

ilMathBCAdapterTest::setUp ( )
protected

Definition at line 26 of file ilMathBCAdapterTest.php.

26  : void
27  {
28  if (!extension_loaded('bcmath')) {
29  $this->markTestSkipped('Could not execute test due to missing bcmath extension!');
30  return;
31  }
32  $this->mathAdapter = new ilMathBCMathAdapter();
33  parent::setUp();
34  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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