Skip to content

Commit 294d082

Browse files
committed
Add test case for constant correctness
1 parent 4a9d70c commit 294d082

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/OpenLocationCodeTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
class OpenLocationCodeTest extends TestCase
1111
{
12+
public function testCorrectConstants(): void
13+
{
14+
$this->assertEquals(OpenLocationCode::ENCODING_BASE, strlen(OpenLocationCode::CODE_ALPHABET));
15+
}
16+
1217
#[DataProvider('codeValidityProvider')]
1318
public function testCorrectCodeValidity(?string $testCode, bool $expectedValidity): void
1419
{

0 commit comments

Comments
 (0)