You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fold function fails to parse when used within a @model property definition in Pact, as demonstrated in the module A below. Replacing fold with and logical operators in module B works as expected. Documentation for fold usage can be found here.
"Verification of A failed"
:OutputFailure: test.pact:20:23: could not parse (test-prop v1 v2 v3): in (fold (and) true [cond1,cond2,cond3]), couldn't find property named fold
"Verification of B succeeded"
test2.pact:18:23:OutputFailure: Invalidating model found in B.T
Program trace:
entering function B.T with arguments
v1 = False
v2 = False
v3 = False
returning with False
Expected Behavior
The fold function should be parsed correctly and utilized in property definitions within @model blocks, as per its documentation.
Actual Behavior
The use of fold results in a parsing error during the verification process, whereas using nested and operators does not cause any parsing issues and behaves as expected.
Debug Information
Pact Version: 4.11
The text was updated successfully, but these errors were encountered:
Issue Description
The
fold
function fails to parse when used within a@model
property definition in Pact, as demonstrated in the module A below. Replacingfold
withand
logical operators in module B works as expected. Documentation forfold
usage can be found here.Steps to Reproduce
Failing Scenario: Module A with
fold
Working Scenario: Module B with
and
Expected Behavior
The
fold
function should be parsed correctly and utilized in property definitions within@model
blocks, as per its documentation.Actual Behavior
The use of
fold
results in a parsing error during the verification process, whereas using nestedand
operators does not cause any parsing issues and behaves as expected.Debug Information
The text was updated successfully, but these errors were encountered: