<?php

namespace Tests\Unit;

use App\Support\RunId;
use PHPUnit\Framework\TestCase;

class RunIdShortTest extends TestCase
{
    public function test_short_should_keep_original_when_not_long_enough(): void
    {
        $this->assertSame('BAS123456', RunId::short('BAS123456', 6, 4));
    }

    public function test_short_should_shorten_with_ellipsis(): void
    {
        $this->assertSame('BAS202…0001', RunId::short('BAS202603171234560001', 6, 4));
    }
}
