Oops test

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2022-07-09 11:01:20 +02:00
parent 3a7dc50e7b
commit 7141fea928

View File

@ -209,7 +209,7 @@ public class ArgumentTypeTest {
public void testArgumentResourceLocation() { public void testArgumentResourceLocation() {
var arg = ArgumentType.ResourceLocation("resource_location"); var arg = ArgumentType.ResourceLocation("resource_location");
assertArg(arg, "minecraft:resource_location_example", arg.parse("minecraft:resource_location_example")); assertArg(arg, "minecraft:resource_location_example", "minecraft:resource_location_example");
assertInvalidArg(arg, "minecraft:invalid resource location"); assertInvalidArg(arg, "minecraft:invalid resource location");
assertArg(arg, "ResourceLocation<resource_location>", arg.toString()); assertArg(arg, "ResourceLocation<resource_location>", arg.toString());
@ -399,7 +399,7 @@ public class ArgumentTypeTest {
@Test @Test
public void testArgumentLiteral() { public void testArgumentLiteral() {
var arg = ArgumentType.Literal("literal"); var arg = ArgumentType.Literal("literal");
assertArg(arg, "literal", arg.parse("literal")); assertArg(arg, "literal", "literal");
assertInvalidArg(arg, "not_literal"); assertInvalidArg(arg, "not_literal");
assertInvalidArg(arg, ""); assertInvalidArg(arg, "");
} }