Skip to content

Vishnu10/generated file patch#4

Open
vishnusunil2 wants to merge 13 commits intomasterfrom
vishnu10/generated_file_patch
Open

Vishnu10/generated file patch#4
vishnusunil2 wants to merge 13 commits intomasterfrom
vishnu10/generated_file_patch

Conversation

@vishnusunil2
Copy link
Copy Markdown

No description provided.

alokmaurya825 and others added 13 commits June 13, 2025 17:14
This update makes binary and logical operators more tolerant of mixed or unknown types, treating them permissively to allow broader type combinations. It also introduces behavior to handle `nil` as a valid operand in various operations (e.g., `nil` treated as `false` or `0` where applicable). Test coverage is expanded significantly with new test cases validating arithmetic, comparison, and mixed-type scenarios.
patch for handling both null cases in add and subtract
This update introduces the `random` function to the builtin package, allowing generation of random integers with one or two arguments for range specification. It includes extensive input validation, type conversion support, and corresponding test coverage for various use cases and edge cases.
Updated nil value handling in comparison functions to standardize behavior by converting nil values to 0 for numeric contexts. Adjusted test cases to align with the updated logic and added safe checks for string-to-numeric conversions, ensuring stricter type validation during comparisons.
Introduced the EqualIn function to handle JavaScript-like equality for "in" operations, specifically for array/slice membership tests. This updates the logic to account for type coercion and special cases, ensuring more robust and consistent behavior.
Introduce comprehensive test cases simulating JavaScript-like functionality in expr, including truthiness, type coercion, equality, array, object, string, function operations, and edge cases. This ensures support and validation for various dynamic behaviors and scenarios commonly used in JavaScript.
These tests cover literals, operators, functions, optional chaining, predicates, and complex expressions. They ensure cases in the Expr language documentation are thoroughly validated for correctness and behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants