]> git.localhorst.tv Git - alttp.git/blob - tests/Unit/Models/ChatLogTest.php
fix missing gt bosses on merge
[alttp.git] / tests / Unit / Models / ChatLogTest.php
1 <?php
2
3 namespace Tests\Unit\Models;
4
5 use App\Models\ChatLog;
6 use PHPUnit\Framework\TestCase;
7
8 class ChatLogTest extends TestCase {
9
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'));
14
15                 $this->assertEquals('gl', ChatLog::classify('glhf'));
16                 $this->assertEquals('gl', ChatLog::classify('gl & hf'));
17
18                 $this->assertEquals('hi', ChatLog::classify('hi'));
19                 $this->assertEquals('hi', ChatLog::classify('hallo'));
20
21                 $this->assertEquals('hype', ChatLog::classify('122 Hype!'));
22
23                 $this->assertEquals('number', ChatLog::classify('13'));
24                 $this->assertEquals('number', ChatLog::classify('22'));
25
26                 $this->assertEquals('lol', ChatLog::classify('haha'));
27                 $this->assertEquals('lol', ChatLog::classify('KEKW'));
28                 $this->assertEquals('lol', ChatLog::classify('LUL'));
29
30                 $this->assertEquals('o7', ChatLog::classify('o7'));
31
32                 $this->assertEquals('pog', ChatLog::classify('Pog'));
33
34                 $this->assertEquals('unclassified', ChatLog::classify(''));
35         }
36
37 }