mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-16 21:21:22 +01:00
Test to avoid regression errors on '.' and '/' in NamespaceID paths
This commit is contained in:
parent
0c96de75ef
commit
aac18a19f9
@ -70,4 +70,14 @@ public class TestNamespaceIDValidity {
|
|||||||
public void numbersAllowed() {
|
public void numbersAllowed() {
|
||||||
NamespaceID.from("0xc1:468786471");
|
NamespaceID.from("0xc1:468786471");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void dotAllowedInPath() {
|
||||||
|
NamespaceID.from("minecraft:ambient.cave");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void slashAllowedInPath() {
|
||||||
|
NamespaceID.from("minecraft:textures/blocks/dirt.png");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user