Add some test expressions
Description
Adds some test expressions which I felt were missing.
test worldcan now be used instead ofworld "world"test locationcan now be used instead ofspawn of world "world"test blockcan now be used instead ofblock at spawn of world "world"- All changed tests have no changed logic, except the block iterator test. This was changed to not fail since some other test forgot to reset the block to air, so it would've been a chest, failing the test.
Also adds event-world event value.
Target Minecraft Versions: any Requirements: none Related Issues: none
There’s event-location in tests
https://github.com/SkriptLang/Skript/blob/ba32d7ad48edb8e33d5f5d2e44d03bba94ffb2de/src/main/java/ch/njol/skript/test/runner/EvtTestCase.java#L45-L59
There’s
event-locationin testshttps://github.com/SkriptLang/Skript/blob/ba32d7ad48edb8e33d5f5d2e44d03bba94ffb2de/src/main/java/ch/njol/skript/test/runner/EvtTestCase.java#L45-L59
this is used in like 5 tests, also test-location looks nicer :)
I don't like the removal of the event-%classinfo% also could be used by external addons using the testing suite.
I don't mind having test-%classinfo% but I prefer event-%classinfo% more. I have no say, so I don't want to review this.
I agree, removing event-* without a grace period is a breaking change.