Test to avoid regression errors on '.' and '/' in NamespaceID paths

This commit is contained in:
jglrxavpok 2020-10-25 11:32:15 +01:00
parent 0c96de75ef
commit aac18a19f9

View File

@ -70,4 +70,14 @@ public class TestNamespaceIDValidity {
public void numbersAllowed() {
NamespaceID.from("0xc1:468786471");
}
@Test
public void dotAllowedInPath() {
NamespaceID.from("minecraft:ambient.cave");
}
@Test
public void slashAllowedInPath() {
NamespaceID.from("minecraft:textures/blocks/dirt.png");
}
}