Better unknown field warnings for patcher
This commit is contained in:
@@ -207,6 +207,20 @@ public class PatcherTests{
|
||||
assertEquals(1, Blocks.conveyor.size);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testUnknownFieldWarn() throws Exception{
|
||||
Vars.state.patcher.apply(Seq.with("""
|
||||
unit.dagger.weapons.+: {
|
||||
bullet: {
|
||||
frogs: 99
|
||||
}
|
||||
}
|
||||
unit.dagger.frogs: 10
|
||||
"""));
|
||||
|
||||
assertEquals(2, Vars.state.patcher.patches.first().warnings.size);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testBigPatch() throws Exception{
|
||||
Vars.state.patcher.apply(Seq.with("""
|
||||
|
||||
Reference in New Issue
Block a user