public function OliveroHexToHslTest::testHexToHsl in Drupal 10
Tests hex to HSL conversion.
@dataProvider hexCodes
Parameters
string $hex: The hex code.
array $expected_hsl: The expected HSL values.
File
- core/
themes/ olivero/ tests/ src/ Unit/ OliveroHexToHslTest.php, line 32
Class
- OliveroHexToHslTest
- Tests the _olivero_hex_to_hsl() function.
Namespace
Drupal\Tests\olivero\UnitCode
public function testHexToHsl(string $hex, array $expected_hsl) : void {
self::assertEquals($expected_hsl, _olivero_hex_to_hsl($hex));
}