Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Focus] Property based tests for Focus laws #1071

Open
kenbot opened this issue Feb 17, 2021 · 0 comments
Open

[Focus] Property based tests for Focus laws #1071

kenbot opened this issue Feb 17, 2021 · 0 comments
Labels
3.x Next major version

Comments

@kenbot
Copy link
Collaborator

kenbot commented Feb 17, 2021

  1. Applied/unapplied symmetry
    Focus[A](_.actions).command(a) == a.focus(_.actions).command

  2. Internal/external operator symmetry
    Focus[A](_.actions.keyword) == Focus[A](_.actions).keyword

  3. Internal/external composition symmetry
    Focus[A](_.action1.action2) == Focus[A](_.action1).andThen(Focus[B](_.action2))

  4. Internal/external composition associativity
    Focus[A](_.action1.action2).andThen(Focus[C](_.action3)) == Focus[A](_.action1).andThen(Focus[B](_.action2.action3))

@kenbot kenbot added After 3.0 Wait for user feedback from the 3.0 release 3.x Next major version and removed After 3.0 Wait for user feedback from the 3.0 release labels Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Next major version
Projects
None yet
Development

No branches or pull requests

1 participant