game-village-politics-backend/tests/Unit/Game/ContinentTest.php

11 lines
307 B
PHP

<?php
use App\Game\Map\Continent;
it('names continents by the hundreds of y, then x', function () {
expect(Continent::of(500, 500))->toBe('K55')
->and(Continent::of(123, 456))->toBe('K41')
->and(Continent::of(0, 0))->toBe('K00')
->and(Continent::of(999, 99))->toBe('K09');
});