Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Clean up arrow-fx-test #51

Closed
wants to merge 2 commits into from
Closed

Clean up arrow-fx-test #51

wants to merge 2 commits into from

Conversation

1Jajen1
Copy link
Member

@1Jajen1 1Jajen1 commented Feb 26, 2020

Removes a bunch of duplicate code.

This fails building with gradle locally because it can't find the generators for some reason. Intellij fails to shows this as an error and I don't even understand why it'd fail^^

Edit: I also changed arrow-fx-test to be published the same way as arrow-core-test

Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

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

Looking great so far! Do you mind if I give it a shot to finish this PR @1Jajen1?


fun <A> A.equalUnderTheLaw(b: A, eq: Eq<A>): Boolean =
eq.run { eqv(b) }

fun <A> A.shouldBeEq(b: A, eq: Eq<A>): Unit = this should matchUnderEq(eq, b)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't all this file belong in arrow-core-test?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, had this here because I wanted to see if this even compiles before moving it

@@ -24,14 +25,14 @@ class FiberTest : UnitSpec() {

init {
fun EQ(): Eq<FiberOf<ForIO, Int>> = object : Eq<FiberOf<ForIO, Int>> {
Copy link
Member

Choose a reason for hiding this comment

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

Can we move these to arrow-fx-test as well and unfix them to ForIO?

@1Jajen1
Copy link
Member Author

1Jajen1 commented Mar 5, 2020

Looking great so far! Do you mind if I give it a shot to finish this PR @1Jajen1?

Fine by me. This fails to compile for reasons I don't understand^^ Wanted to take a look at it this weekend, but if you want to try it go ahead :)

@1Jajen1 1Jajen1 mentioned this pull request Mar 6, 2020
@1Jajen1
Copy link
Member Author

1Jajen1 commented Mar 7, 2020

This is continued in #90

@1Jajen1 1Jajen1 closed this Mar 7, 2020
@1Jajen1 1Jajen1 deleted the jo-clean-fx-test branch March 7, 2020 00:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants