Skip to content

Commit

Permalink
[ wip ] Store strings in a set
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden committed Sep 8, 2023
1 parent 35be55c commit a35009b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Test/DepTyCheck/Gen/Coverage.idr
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Test.DepTyCheck.Gen
public export
record ModelCoverage where
constructor MkModelCoverage
unModelCoverage : SnocList String
unModelCoverage : SortedSet String

export
Semigroup ModelCoverage where
Expand All @@ -41,7 +41,7 @@ unGenD $ Empty = throwError ()
unGenD $ Pure x = pure x
unGenD $ Raw sf = sf.unRawGen
unGenD $ OneOf oo = do
whenJust oo.desc $ tell . MkModelCoverage . pure
whenJust oo.desc $ tell . MkModelCoverage . singleton
assert_total unGenD . force . pickWeighted oo.gens . finToNat =<< randomFin oo.totalWeight.unVal
unGenD $ Bind x f = x.unRawGen >>= unGenD . f

Expand Down

0 comments on commit a35009b

Please sign in to comment.