Skip to content

#347: Cover mixed fact eligibility in the say-hello judge - #348

Open
EazyHood wants to merge 1 commit into
zerocracy:masterfrom
EazyHood:347
Open

EazyHood wants to merge 1 commit into
zerocracy:masterfrom
EazyHood:347

Conversation

@EazyHood

@EazyHood EazyHood commented Dec 3, 2026

Copy link
Copy Markdown

Fixes #347.

Add a mixed factbase to the example judge's YAML tests. The four records cover the possible combinations of hi and hello. After two judge cycles, the eligible record has exactly one greeting, the unrelated record still has none, and both pre-existing greetings retain their original values.

Removing (exists hi) from the query leaves the original bundle exec rake green. With the new fixture, the same change fails /fb/f[_id=2 and not(hello)] because the judge greets an unrelated record.

With the original judge and the new fixture, bundle exec rake passes 6 Ruby tests with 41 assertions and both judge scenarios. RuboCop reports no offenses. yamllint ., typos . and reuse lint also pass.

@EazyHood
EazyHood requested a review from yegor256 as a code owner December 3, 2026 15:27
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.

The say-hello tests stay green when the judge greets facts without hi

1 participant