diff options
author | ExternalTime <84183548+ExternalTime@users.noreply.github.com> | 2021-09-21 14:22:51 +0200 |
---|---|---|
committer | ExternalTime <84183548+ExternalTime@users.noreply.github.com> | 2021-09-21 14:22:51 +0200 |
commit | bda43fa7d3b9ef6a9949d51251ec2a2f93ca0599 (patch) | |
tree | 84199c046ab71b116442368ce69e3b5bc22c7b67 /src/test/java | |
parent | 9afa447bb4b811c74d7d0bf1e3e2db05db64e460 (diff) | |
download | Skyblocker-bda43fa7d3b9ef6a9949d51251ec2a2f93ca0599.tar.gz Skyblocker-bda43fa7d3b9ef6a9949d51251ec2a2f93ca0599.tar.bz2 Skyblocker-bda43fa7d3b9ef6a9949d51251ec2a2f93ca0599.zip |
Added tests for trivia solver
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/me/xmrvizzy/skyblocker/skyblock/dungeon/TriviaTest.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/java/me/xmrvizzy/skyblocker/skyblock/dungeon/TriviaTest.java b/src/test/java/me/xmrvizzy/skyblocker/skyblock/dungeon/TriviaTest.java new file mode 100644 index 00000000..0006ddd8 --- /dev/null +++ b/src/test/java/me/xmrvizzy/skyblocker/skyblock/dungeon/TriviaTest.java @@ -0,0 +1,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"); + } +}
\ No newline at end of file |