Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

test: the DATE test holds Result.to_json() to the form the loaded engine uses (#339) - #340

Merged
tae898 merged 1 commit into
mainfrom
date-test-engine-form
Oct 18, 2026
Merged

tae898 merged 1 commit into
mainfrom
date-test-engine-form

Conversation

@tae898

@tae898 tae898 commented Oct 18, 2026

Copy link
Copy Markdown

Closes #339.

test_to_json_list_writes_a_date_as_midnight_utc_in_any_jvm_zone now asks the engine which DATE form it writes: Type.getTypeByValue(LocalDate) is DATE since 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. The to_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 (LocalDate maps to null) and 4 passed on a wheel with upstream a830b2114a's engine (maps to DATE).

🤖 Generated with Claude Code

…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]>
@tae898
tae898 merged commit 2683b71 into main Oct 18, 2026
49 checks passed
@tae898
tae898 deleted the date-test-engine-form branch October 18, 2026 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DATE test: hold Result.to_json() to the form the loaded engine uses

1 participant