Skip to content

[fea-rs] Move some predicate tests to be file-based - #2099

Merged
anthrotype merged 1 commit into
mainfrom
refactor-predicate-bad-tests
Aug 28, 2026
Merged

[fea-rs] Move some predicate tests to be file-based#2099
anthrotype merged 1 commit into
mainfrom
refactor-predicate-bad-tests

Conversation

@cmyr

@cmyr cmyr commented Aug 27, 2026

Copy link
Copy Markdown
Member

These tests were jumping through hoops to check error conditions, and we have a very nice pattern for exactly that.

JMM

These tests were jumping through hoops to check error conditions, and we
have a very nice pattern for exactly that.

@anthrotype anthrotype left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Nit: the old test also asserted that these predicates fail during validation. The shared bad-test harness accepts CompilationFail too, so that specific invariant is no longer covered. Not sure if we should bother retaining a small assertion for that? Up to you

@cmyr

cmyr commented Aug 28, 2026

Copy link
Copy Markdown
Member Author

To my mind the distinction between the validation and compilation passes are opaque to the consumer, as long as we're showing a meaningful error I think it's okay?

@anthrotype

Copy link
Copy Markdown
Member

ok yeah

@anthrotype
anthrotype added this pull request to the merge queue Aug 28, 2026
Merged via the queue into main with commit a31936b Aug 28, 2026
18 checks passed
@anthrotype
anthrotype deleted the refactor-predicate-bad-tests branch August 28, 2026 14:57
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