Skip to content

Commit b8cf354

Browse files
Soupstrawlehins
andauthored
Update test/Test/Codec/CBOR/Cuddle/Huddle.hs
Co-authored-by: Alexey Kuleshevich <[email protected]>
1 parent 60b5593 commit b8cf354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Test/Codec/CBOR/Cuddle/Huddle.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ shouldMatchParseRule :: Rule -> String -> Expectation
180180
shouldMatchParseRule x = shouldMatchParseWith ruleMatches x pRule
181181

182182
cddlMatches :: CDDL -> CDDL -> Bool
183-
cddlMatches (CDDL c r t) (CDDL c' r' t') = c == c' && ruleMatches r r' && and (zipWith topLevelMatches t t')
183+
cddlMatches (CDDL c r t) (CDDL c' r' t') = c == c' && ruleMatches r r' && and (zipWith topLevelMatches t t') && length t == length t'
184184

185185
ruleMatches :: Codec.CBOR.Cuddle.CDDL.Rule -> Codec.CBOR.Cuddle.CDDL.Rule -> Bool
186186
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

Comments
 (0)