diff --git a/src/test/java/com/mojang/brigadier/StringReaderTest.java b/src/test/java/com/mojang/brigadier/StringReaderTest.java index 0bcb752..d42bd37 100644 --- a/src/test/java/com/mojang/brigadier/StringReaderTest.java +++ b/src/test/java/com/mojang/brigadier/StringReaderTest.java @@ -8,7 +8,9 @@ import org.junit.Test; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; public class StringReaderTest { @@ -527,4 +529,24 @@ public class StringReaderTest { assertThat(ex.getCursor(), is(0)); } } + + @Test + public void isAllowedInUnquotedStringInput2OutputTrue() { + assertTrue(StringReader.isAllowedInUnquotedString('2')); + } + + @Test + public void isAllowedInUnquotedStringInputNotNullOutputFalse() { + assertFalse(StringReader.isAllowedInUnquotedString('\u0000')); + } + + @Test + public void isAllowedInUnquotedStringInputNotNullOutputFalse2() { + assertFalse(StringReader.isAllowedInUnquotedString(':')); + } + + @Test + public void isAllowedInUnquotedStringInputrOutputTrue() { + assertTrue(StringReader.isAllowedInUnquotedString('r')); + } } \ No newline at end of file