ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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:

Static Public Member Functions

static powData ()
 
- Static Public Member Functions inherited from ilMathBaseAdapterTestCase
static addData ()
 
static subData ()
 
static mulData ()
 
static divData ()
 
static modData ()
 
static sqrtData ()
 
static powData ()
 
static equalsData ()
 
static calcData ()
 

Protected Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from ilMathBaseAdapterTestCase
 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 ()
 
- Protected Attributes inherited from ilMathBaseAdapterTestCase
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 19 of file ilMathBCAdapterTest.php.

Member Function Documentation

◆ powData()

static ilMathBCAdapterTest::powData ( )
static
Returns
array

Definition at line 37 of file ilMathBCAdapterTest.php.

References null.

37  : array
38  {
39  return array_merge([
40  ['2', '64', '18446744073709551616', null],
41  ], parent::powData());
42  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ setUp()

ilMathBCAdapterTest::setUp ( )
protected

Definition at line 24 of file ilMathBCAdapterTest.php.

24  : void
25  {
26  if (!extension_loaded('bcmath')) {
27  $this->markTestSkipped('Could not execute test due to missing bcmath extension!');
28  return;
29  }
30  $this->mathAdapter = new ilMathBCMathAdapter();
31  parent::setUp();
32  }
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: