forked from SkriptLang/Skript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull-6687-enchantment-update.sk - add test
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/test/skript/tests/regressions/pull-6687-enchantment-update.sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
test "Enchantment Registry Update": | ||
set {_i} to diamond sword of unbreaking 3 and sharpness 10 | ||
|
||
assert enchantment level of unbreaking of {_i} = 3 with "Unbreaking enchant on {_i} should have been 3" | ||
assert enchantment level of sharpness of {_i} = 10 with "Sharpness enchant on {_i} should have been 10" | ||
|
||
set enchantment level of lure of {_i} to 5 | ||
assert enchantment level of lure of {_i} = 5 with "Lure enchant on {_i} should have been 5" | ||
|
||
set enchantment level of sharpness of {_i} to 5 | ||
assert enchantment level of sharpness of {_i} = 5 with "Sharpness enchant on {_i} should have been 5" |