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

Fix #315 #342 #343

Merged
merged 5 commits into from Apr 9, 2016
Merged

Fix #315 #342 #343

merged 5 commits into from Apr 9, 2016

Conversation

pvillega
Copy link
Contributor

@pvillega pvillega commented Apr 9, 2016

Fix issue in Bits where singleBit for Long was shitfing bits incorrectly

Add random index for IndexTests/OptionalTests using ScalaCheck

Pere Villega added 2 commits April 9, 2016 16:40
Fix issue in Bits where singleBit for Long was shitfing bits incorrectly

Add random index for IndexTests/OptionalTests using ScalaCheck
@@ -43,6 +43,7 @@ lazy val buildSettings = Seq(
lazy val scalaz = Def.setting("org.scalaz" %%% "scalaz-core" % "7.2.1")
lazy val shapeless = Def.setting("com.chuusai" %%% "shapeless" % "2.3.0")
lazy val refinedDep = Def.setting("eu.timepit" %%% "refined" % "0.3.7")
lazy val refinedScalaCheckDep = Def.setting("eu.timepit" %%% "refined-scalacheck" % "0.3.7")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add "test" modifier

@pvillega
Copy link
Contributor Author

pvillega commented Apr 9, 2016

Updated! I had to move the dependency for it to compile, let me know if there's anything else you want changed :)

sEq: Equal[S], sArb: Arbitrary[S],
iArb: Arbitrary[I], evAt: At[S, I, A]): RuleSet = {
new SimpleRuleSet("At", LensTests(at(_: I)).props: _*)
}

def defaultIntIndex[S, A](implicit aEq: Equal[A], aArb: Arbitrary[A],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can probably remove defaultIntIndex

@julien-truffaut
Copy link
Member

Thank you very much, it is awesome to write tests that actually find bugs :)

… no longer necessary

Also, modified code format broken by intelliJ
@pvillega
Copy link
Contributor Author

pvillega commented Apr 9, 2016

No, thank you! It was fun and I learned :)

I've removed the methods, updated code to user the 'proper' apply way, and fixed the styling (hopefully). Let me know if you want me to tweak something else, as IntelliJ may do stuff I don't realise... :eh:

@julien-truffaut
Copy link
Member

👍

@julien-truffaut julien-truffaut merged commit a897ed5 into optics-dev:master Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants