diff options
author | Rime <81419447+Emirlol@users.noreply.github.com> | 2024-07-13 02:23:17 +0300 |
---|---|---|
committer | olim <bobq4582@gmail.com> | 2024-07-15 12:38:47 +0100 |
commit | 33c944a9ce9966374de93bab32b581d19e97cb81 (patch) | |
tree | d2b3a3e75ca319d34afd370fdaafef9a965fe67b /src/test/java/de/hysky/skyblocker/skyblock/dwarven | |
parent | dfe5c28dd6a50fc88973e95e60bcfd418daa1e90 (diff) | |
download | Skyblocker-33c944a9ce9966374de93bab32b581d19e97cb81.tar.gz Skyblocker-33c944a9ce9966374de93bab32b581d19e97cb81.tar.bz2 Skyblocker-33c944a9ce9966374de93bab32b581d19e97cb81.zip |
Simplify test case to not need long comment
Diffstat (limited to 'src/test/java/de/hysky/skyblocker/skyblock/dwarven')
-rw-r--r-- | src/test/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationManagerTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationManagerTest.java b/src/test/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationManagerTest.java index 11331fae..10c55faf 100644 --- a/src/test/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationManagerTest.java +++ b/src/test/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationManagerTest.java @@ -13,9 +13,9 @@ class CrystalsLocationManagerTest { @Test void testRegex() { - Assertions.assertTrue(matches("x123 y12 z123")); - Assertions.assertTrue(matches("x123, y12, z123")); - Assertions.assertTrue(matches("Player: 123 12 123")); //This and the ones below fail when specified in the same format as those above, as the regex check assumes that the message is sent somewhere in a message and that it isn't the whole message + Assertions.assertTrue(matches("Player: x123 y12 z123")); + Assertions.assertTrue(matches("Player: x123, y12, z123")); + Assertions.assertTrue(matches("Player: 123 12 123")); Assertions.assertTrue(matches("Player: 123 123 123")); Assertions.assertTrue(matches("Player: 123, 12, 123")); Assertions.assertTrue(matches("Player: 123, 123, 123")); |