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'));
20 $this->assertNotEquals('hi', ChatLog::classify('hier steht was'));
22 $this->assertEquals('hype', ChatLog::classify('122 Hype!'));
24 $this->assertEquals('number', ChatLog::classify('13'));
25 $this->assertEquals('number', ChatLog::classify('22'));
27 $this->assertEquals('lol', ChatLog::classify('haha'));
28 $this->assertEquals('lol', ChatLog::classify('KEKW'));
29 $this->assertEquals('lol', ChatLog::classify('LUL'));
31 $this->assertEquals('o7', ChatLog::classify('o7'));
33 $this->assertEquals('pog', ChatLog::classify('Pog'));
35 $this->assertEquals('unclassified', ChatLog::classify(''));