Skip to content

parser: fix the DateTime.Today test failing at midnight - #35

Merged
rameel merged 1 commit into
mainfrom
parser/stable-today-test
Nov 18, 2026
Merged

rameel merged 1 commit into
mainfrom
parser/stable-today-test

Conversation

@rameel

@rameel rameel commented Nov 18, 2026

Copy link
Copy Markdown
Owner

The DateTime.Today case in EvaluatesSource computed the expected date when the test cases were built, so the test failed if the date changed before the expression was evaluated. This PR moves it to a separate test that compares the result with DateTime.Today taken before and after the evaluation.

@rameel
rameel merged commit 7e3012d into main Nov 18, 2026
1 check passed
@rameel
rameel deleted the parser/stable-today-test branch November 18, 2026 16:50
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.

1 participant