This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
test: the DATE test holds Result.to_json() to the form the loaded engine uses (#339) - #340
Merged
Merged
Conversation
…ine uses (#339) Type.getTypeByValue(LocalDate) is DATE since ArcadeData#10253 (to_json writes days since the epoch) and null before it (midnight UTC milliseconds); the test asks the engine and asserts that one value, instead of accepting both. A version check cannot tell: 26.11.1 snapshots from before ArcadeData#10253 exist. From the review of ArcadeData#10312. Closes #339. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Closes #339.
test_to_json_list_writes_a_date_as_midnight_utc_in_any_jvm_zonenow asks the engine which DATE form it writes:Type.getTypeByValue(LocalDate)isDATEsince ArcadeData#10253 (days since the epoch) and null before it (midnight UTC milliseconds).Result.to_json()is held to that one value instead of either. Theto_json_list()assertions (midnight UTC milliseconds in every zone, the #116 fix) are unchanged.Checked locally:
test_bridge_fixes.py, 4 passed on the 26.10.2 release wheel (LocalDatemaps to null) and 4 passed on a wheel with upstreama830b2114a's engine (maps toDATE).🤖 Generated with Claude Code