3 namespace Tests\Unit\Models;
5 use App\Models\ChatLog;
6 use PHPUnit\Framework\TestCase;
8 class ChatLogTest extends TestCase {
10 public function test_classification() {
11 $this->assertEquals('gg', ChatLog::classify('gg'));
12 $this->assertEquals('gg', ChatLog::classify('GG'));
13 $this->assertEquals('gg', ChatLog::classify('Gg'));
15 $this->assertEquals('gl', ChatLog::classify('glhf'));
16 $this->assertEquals('gl', ChatLog::classify('gl & hf'));
18 $this->assertEquals('hi', ChatLog::classify('hi'));
19 $this->assertEquals('hi', ChatLog::classify('hallo'));
21 $this->assertEquals('hype', ChatLog::classify('122 Hype!'));
23 $this->assertEquals('number', ChatLog::classify('13'));
24 $this->assertEquals('number', ChatLog::classify('22'));
26 $this->assertEquals('lol', ChatLog::classify('haha'));
27 $this->assertEquals('lol', ChatLog::classify('KEKW'));
28 $this->assertEquals('lol', ChatLog::classify('LUL'));
30 $this->assertEquals('o7', ChatLog::classify('o7'));
32 $this->assertEquals('pog', ChatLog::classify('Pog'));
34 $this->assertEquals('unclassified', ChatLog::classify(''));