Finally updated Config string getters to not be formatted by default

This commit is contained in:
Auxilor
2022-01-06 14:51:55 +00:00
parent 6b9942f412
commit 5cb14e31b7
3 changed files with 25 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
import com.willfp.eco.core.items.Items;
import com.willfp.eco.util.StringUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
@@ -6,11 +6,11 @@ public class ItemsTest {
@Test
public void testParserLookupStrings() {
Assertions.assertArrayEquals(
Items.parseLookupString("diamond_sword name:\"test name\""),
StringUtils.parseTokens("diamond_sword name:\"test name\""),
new String[]{"diamond_sword", "name:test name"}
);
Assertions.assertArrayEquals(
Items.parseLookupString("stick 1 name:\"The \\\"Holy\\\" Stick\""),
StringUtils.parseTokens("stick 1 name:\"The \\\"Holy\\\" Stick\""),
new String[]{"stick", "1", "name:The \"Holy\" Stick"}
);
}