Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Clamp Function #5573

Merged
merged 6 commits into from
Jun 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/test/skript/tests/syntaxes/functions/clamp.sk
Co-authored-by: LimeGlass <16087552+TheLimeGlass@users.noreply.github.com>
  • Loading branch information
sovdeeth and TheLimeGlass authored Apr 19, 2023
commit a2e98453a915983da70bb11766f575f9441f2cdb
2 changes: 1 addition & 1 deletion src/test/skript/tests/syntaxes/functions/clamp.sk
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ test "clamp numbers":
set {_got::*} to clamp(({_null}, NaN value, -infinity value, infinity value), 0.0, 2.0)
assert number within {_got::1} is not number within {_got::1} with "(edge cases list) NaN" # need within because the variables weren't cooperating
assert {_got::2} is {_expected::2} with "(edge cases list) -infinity"
assert {_got::3} is {_expected::3} with "(edge cases list) infinity"
assert {_got::3} is {_expected::3} with "(edge cases list) infinity"