Skip to content

Commit

Permalink
better tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sovdeeth committed Jul 22, 2024
1 parent 4faf259 commit 2401841
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
command single-quotes-in-commands ["<text="success 2">"]:
trigger:
broadcast arg
set {sqic::output} to arg

test "single-quotes-in-commands":
execute console command "single-quotes-in-commands ""success 1"""
assert {sqic::output} is "success 1" with "failed to parse arg in quotes"
execute console command "single-quotes-in-commands"
assert {sqic::output} is "success 2" with "failed to use default arg"
delete {sqic::output}

0 comments on commit 2401841

Please sign in to comment.