mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
34 lines
662 B
PHP
34 lines
662 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\Math\Geometry\Shape\D3;
|
|
|
|
use phpOMS\Math\Geometry\Shape\D3\Cuboid;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
class CuboidTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testVolume() : void
|
|
{
|
|
self::assertEqualsWithDelta(200, Cuboid::getVolume(10, 5, 4), 0.001);
|
|
}
|
|
|
|
public function testSurface() : void
|
|
{
|
|
self::assertEqualsWithDelta(220, Cuboid::getSurface(10, 5, 4), 0.001);
|
|
}
|
|
}
|