aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/me/xmrvizzy/skyblocker/skyblock/dungeon/TriviaTest.java
blob: 0006ddd8a4f6849eec3d1b4526f53432d67b8a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package me.xmrvizzy.skyblocker.skyblock.dungeon;

import me.xmrvizzy.skyblocker.chat.ChatListenerTest;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

class TriviaTest extends ChatListenerTest<Trivia> {
    public TriviaTest() {
        super(new Trivia());
    }

    @Test
    void question() {
        assertEquals(getGroups("                       What is the status of Necron?")[1], "What is the status of Necron?");
    }

    @Test
    void qestion2() {
        assertEquals(getGroups("       How many Fairy Souls are there in Jerry's Workshop?")[1], "How many Fairy Souls are there in Jerry's Workshop?");
    }

    @Test
    void answer() {
        assertEquals(getGroups("     §6 ⓑ §a9 Fairy Souls")[3], "9 Fairy Souls");
    }
}