test.equal: Difference between revisions
Jump to navigation
Jump to search
Bubblobill (talk | contribs) (Created initial page) |
Bubblobill (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Languages|test.equal}} | {{Languages|test.equal}} | ||
{{Experimental}} | |||
{{MacroFunction | {{MacroFunction | ||
|name=test.equal | |name=test.equal |
Revision as of 11:28, 31 May 2024
Languages: English
This article describes a feature or macro function that is experimental and may be subject to change.
test.equal() Function
Note: This function can only be used in a Trusted Macro
Compares an actual value with an expected value and prints the output to chat.
Usage
test.equal(expected, actual, label)
Parameters
expected
- The value to compare against.actual
- The value to compare.label
- An identifying string included in the output.
Example
[r: test.equal(1, myUDF(1,2), "Test #1 ")]
output: Test #1 Succeeded
output: Test #1 Failed, expected 1 got 0See Also
Languages: English