-
-
Notifications
You must be signed in to change notification settings - Fork 399
Literal Number Max+Min Values #8008
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
Open
Absolutionism
wants to merge
4
commits into
SkriptLang:dev/feature
Choose a base branch
from
Absolutionism:dev/LiteralNumberValues
base: dev/feature
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Literal Number Max+Min Values #8008
Absolutionism
wants to merge
4
commits into
SkriptLang:dev/feature
from
Absolutionism:dev/LiteralNumberValues
Conversation
This file contains hidden or 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
sovdeeth
requested changes
Jul 5, 2025
src/main/java/ch/njol/skript/test/runner/LitDoubleMaxValue.java
Outdated
Show resolved
Hide resolved
Efnilite
approved these changes
Jul 5, 2025
sovdeeth
requested changes
Jul 6, 2025
sovdeeth
approved these changes
Jul 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
feature-ready
A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
No expression/literal to easily grab the max/min value of a number type when needed for tests ensuring expression changer capped the final value to the specific values.
Solution
Adds literals for each number type and both max and min values.
Updates tests using the actual number representation.
Adds a new
literals
package to store the newly created literals and existing ones.Adds
literals
in theloadClasses
method callTesting Completed
quickTest
Supporting Information
N/A
Other
These literals are only made for the testing environment. But if anyone believes it should be available outside of the testing environment, I have no problem with that.Edit: Are now available outside of test environment.
Completes: none
Related: none