Skip to content

Commit

Permalink
Simplify arbitrary derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed May 28, 2024
1 parent 8e79b32 commit dcadec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object ArbitraryDerivation {
// pick a fixed subtype to have a chance to stop recursion
Gen.const(subtypes.size + size)
}
subtypeGen <- Gen.resize(size - 1, sealedTrait.subtypes(i).typeclass.arbitrary)
subtypeGen <- Gen.resize(size - 1, subtypes(i).typeclass.arbitrary)
} yield subtypeGen
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object ArbitraryDerivation extends Derivation[Arbitrary]:
// pick a fixed subtype to have a chance to stop recursion
Gen.const(subtypes.size + size)
}
subtypeGen <- Gen.resize(size - 1, sealedTrait.subtypes(i).typeclass.arbitrary)
subtypeGen <- Gen.resize(size - 1, subtypes(i).typeclass.arbitrary)
} yield subtypeGen
}
}
Expand Down

0 comments on commit dcadec9

Please sign in to comment.