Typos in Test Comments

This commit is contained in:
oleibman
2025-12-01 11:00:23 -08:00
parent 5c504ac4ce
commit edd28628f3
4 changed files with 12 additions and 6 deletions
@@ -19,7 +19,8 @@ class CharTest extends AllSetupTeardown
#[DataProvider('providerCHAR')]
public function testCHAR(mixed $expectedResult, mixed $character = 'omitted'): void
{
// if espected is array, 1st is for char, 2nd for unichar
// If expected is array, 1st is for CHAR, 2nd for UNICHAR,
// 3rd is for Mac CHAR if different from Windows.
if (is_array($expectedResult)) {
$expectedResult = $expectedResult[0];
}
@@ -39,7 +40,8 @@ class CharTest extends AllSetupTeardown
public function testMacCHAR(mixed $expectedResult, mixed $character = 'omitted'): void
{
CC::setMacCharacterSet();
// if espected is array, 1st is for CHAR, 2nd UNICHAR, 3rd Mac CHAR
// If expected is array, 1st is for CHAR, 2nd for UNICHAR,
// 3rd is for Mac CHAR if different from Windows.
if (is_array($expectedResult)) {
$expectedResult = $expectedResult[2] ?? $expectedResult[0];
}
@@ -19,7 +19,8 @@ class CodeTest extends AllSetupTeardown
#[DataProvider('providerCODE')]
public function testCODE(mixed $expectedResult, mixed $character = 'omitted'): void
{
// if espected is array, 1st is for code, 2nd for unicode
// If expected is array, 1st is for CODE, 2nd for UNICODE,
// 3rd is for Mac CODE if different from Windows.
if (is_array($expectedResult)) {
$expectedResult = $expectedResult[0];
}
@@ -39,7 +40,8 @@ class CodeTest extends AllSetupTeardown
public function testMacCODE(mixed $expectedResult, mixed $character = 'omitted'): void
{
CC::setMacCharacterSet();
// if espected is array, 1st is for code, 2nd unicode, 3rd Mac CODE
// If expected is array, 1st is for CODE, 2nd for UNICODE,
// 3rd is for Mac CODE if different from Windows.
if (is_array($expectedResult)) {
$expectedResult = $expectedResult[2] ?? $expectedResult[0];
}
@@ -12,7 +12,8 @@ class UnicharTest extends AllSetupTeardown
#[DataProvider('providerCHAR')]
public function testCHAR(mixed $expectedResult, mixed $character = 'omitted'): void
{
// if espected is array, 1st is for char, 2nd for unichar
// If expected is array, 1st is for CHAR, 2nd for UNICHAR,
// 3rd is for Mac CHAR if different from Windows.
if (is_array($expectedResult)) {
$expectedResult = $expectedResult[1];
}
@@ -12,7 +12,8 @@ class UnicodeTest extends AllSetupTeardown
#[DataProvider('providerCODE')]
public function testCODE(mixed $expectedResult, mixed $character = 'omitted'): void
{
// if espected is array, 1st is for code, 2nd for unicode
// If expected is array, 1st is for CODE, 2nd for UNICODE,
// 3rd is for Mac CODE if different from Windows.
if (is_array($expectedResult)) {
$expectedResult = $expectedResult[1];
}