Skip to content

Commit

Permalink
pull-6687-enchantment-update.sk - add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Jul 1, 2024
1 parent f4c3a7a commit 50b13bd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/skript/tests/regressions/pull-6687-enchantment-update.sk
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"

0 comments on commit 50b13bd

Please sign in to comment.