mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 01:47:54 +01:00
Oops test
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
3a7dc50e7b
commit
7141fea928
@ -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, "");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user