We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60b5593 commit b8cf354Copy full SHA for b8cf354
test/Test/Codec/CBOR/Cuddle/Huddle.hs
@@ -180,7 +180,7 @@ shouldMatchParseRule :: Rule -> String -> Expectation
180
shouldMatchParseRule x = shouldMatchParseWith ruleMatches x pRule
181
182
cddlMatches :: CDDL -> CDDL -> Bool
183
-cddlMatches (CDDL c r t) (CDDL c' r' t') = c == c' && ruleMatches r r' && and (zipWith topLevelMatches t t')
+cddlMatches (CDDL c r t) (CDDL c' r' t') = c == c' && ruleMatches r r' && and (zipWith topLevelMatches t t') && length t == length t'
184
185
ruleMatches :: Codec.CBOR.Cuddle.CDDL.Rule -> Codec.CBOR.Cuddle.CDDL.Rule -> Bool
186
ruleMatches (Rule n b c d e _) (Rule n' b' c' d' e' _) = n == n' && b == b' && c == c' && d == d' && e == e'
0 commit comments