optics-dev / optics-dev/Monocle
[Focus] Property based tests for Focus laws
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.7k
- Forks
- 207
- Avg merge
- 7h 59m
- Merged PRs (30d)
- 5
Description
-
Applied/unapplied symmetry
Focus[A](_.actions).command(a) == a.focus(_.actions).command -
Internal/external operator symmetry
Focus[A](_.actions.keyword) == Focus[A](_.actions).keyword -
Internal/external composition symmetry
Focus[A](_.action1.action2) == Focus[A](_.action1).andThen(Focus[B](_.action2)) -
Internal/external composition associativity
Focus[A](_.action1.action2).andThen(Focus[C](_.action3)) == Focus[A](_.action1).andThen(Focus[B](_.action2.action3))
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing Focus tests and the repository's property-based testing setup. Use the four laws listed in the issue as the coverage target, and consider the work done when those symmetries and associativity properties are exercised by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100