mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 02:08:40 +00:00
38 lines
794 B
PHP
38 lines
794 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\Utils;
|
|
|
|
use phpOMS\Utils\NumericUtils;
|
|
|
|
require_once __DIR__ . '/../Autoloader.php';
|
|
|
|
/**
|
|
* @testdox phpOMS\tests\Utils\NumericUtilsTest: Numeric utilities
|
|
*
|
|
* @internal
|
|
*/
|
|
class NumericUtilsTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
/**
|
|
* @testdox Integers can be unsigned right shifted
|
|
* @covers phpOMS\Utils\NumericUtils
|
|
*/
|
|
public function testShift() : void
|
|
{
|
|
self::assertEquals(10, NumericUtils::uRightShift(10, 0));
|
|
self::assertEquals(3858, NumericUtils::uRightShift(123456, 5));
|
|
}
|
|
}
|