phpOMS/tests/Utils/Encoding/GrayTest.php
2022-02-19 13:57:39 +01:00

37 lines
751 B
PHP

<?php
/**
* Karaka
*
* PHP Version 8.0
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
namespace phpOMS\tests\Utils\Encoding;
use phpOMS\Utils\Encoding\Gray;
/**
* @testdox phpOMS\tests\Utils\Encoding\GrayTest: Gray text encoding/decoding
*
* @internal
*/
final class GrayTest extends \PHPUnit\Framework\TestCase
{
/**
* @testdox Text can be encoded and decoded with the gray encoding
* @covers phpOMS\Utils\Encoding\Gray
* @group framework
*/
public function testEncoding() : void
{
self::assertEquals(55, Gray::encode(37));
self::assertEquals(37, Gray::decode(55));
}
}