Skip to content

Improve some null-related tests#34019

Merged
maumar merged 5 commits intodotnet:mainfrom
ranma42:more-bool-null-tests
Jun 18, 2024
Merged

Improve some null-related tests#34019
maumar merged 5 commits intodotnet:mainfrom
ranma42:more-bool-null-tests

Conversation

@ranma42
Copy link
Copy Markdown
Contributor

@ranma42 ranma42 commented Jun 18, 2024

This PR improves some tests. Specifically:

  • it ensures that COALESCE operations cannot be trivially optimized away
  • it extends the GearsOfWar dataset with some explicit null in the Eradicated field

Because of the changes, it regresses some tests. They are handled as follows:

ranma42 added 5 commits June 18, 2024 10:53
This change aims at ensuring that the expressions within the queries being
tested cannot be trivially optimized away.

Based on the suggestion by @maumar in
dotnet#33938 (comment)
The property type is `bool?`, not `bool`.
The new dataset shows that the current implementation does not actually behave
as intended (aka as expected by the test).
@maumar maumar merged commit 9a80b6b into dotnet:main Jun 18, 2024
@ranma42 ranma42 deleted the more-bool-null-tests branch June 18, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants