Skip to content

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
wants to merge 4 commits into
base: dev/feature
Choose a base branch
from

Conversation

Absolutionism
Copy link
Contributor

@Absolutionism Absolutionism commented Jul 5, 2025

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 the loadClasses method call

Testing 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

@Absolutionism Absolutionism requested review from a team as code owners July 5, 2025 05:31
@Absolutionism Absolutionism requested review from UnderscoreTud and cheeezburga and removed request for a team July 5, 2025 05:31
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jul 5, 2025
@Absolutionism Absolutionism added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jul 5, 2025
@Absolutionism Absolutionism requested a review from sovdeeth July 5, 2025 05:56
@Absolutionism Absolutionism moved this to In Review in 2.13 Release Jul 5, 2025
@skriptlang-automation skriptlang-automation bot removed the needs reviews A PR that needs additional reviews label Jul 6, 2025
@Absolutionism Absolutionism requested a review from sovdeeth July 7, 2025 15:07
@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.13 Release Jul 8, 2025
@skriptlang-automation skriptlang-automation bot added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label 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.
Projects
Status: Awaiting Merge
Development

Successfully merging this pull request may close these issues.

3 participants