Skip to content

Commit

Permalink
Add 'for' syntax for assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Jan 6, 2025
1 parent 60cdd93 commit e951d48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/composableschemadsl/references/test_syntax_with_caveats.zed
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ test DocumentCaveatedTest {
}
assertions {
// TODO
post:one is view_as_fan user:beatrice when {"likes": true} // Positive assertion
post:one is not view_as_fan user:beatrice when {"likes": false} // Negative assertion
post:one is conditional view_as_fan user:beatrice // Conditional assertion
post:one is view_as_fan for user:beatrice when {"likes": true} // Positive assertion
post:one is not view_as_fan for user:beatrice when {"likes": false} // Negative assertion
post:one is conditional view_as_fan for user:beatrice // Conditional assertion

post:one is view_temporarily user:claire when {"current_day": "tuesday"}
post:one is not view_temporarily user:claire when {"current_day": "wednesday"}
post:one is view_temporarily for user:claire when {"current_day": "tuesday"}
post:one is not view_temporarily for user:claire when {"current_day": "wednesday"}
}
expected {
post:one view {
Expand Down

0 comments on commit e951d48

Please sign in to comment.