Skip to content

Commit

Permalink
Close #94 - Rename refined4s.cats to refined4s.modules.cats
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-lee committed Dec 10, 2023
1 parent 68c19f1 commit e77602c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package refined4s.cats.derivation
package refined4s.modules.cats.derivation

import cats.Eq
import refined4s.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package refined4s.cats.derivation
package refined4s.modules.cats.derivation

import refined4s.NewtypeBase

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package refined4s.cats.derivation
package refined4s.modules.cats.derivation

import cats.Show
import refined4s.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package refined4s.cats
package refined4s.modules.cats

import cats.data.*
import cats.syntax.all.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package refined4s.cats.derivation
package refined4s.modules.cats.derivation

import cats.*
import cats.syntax.all.*
import hedgehog.*
import hedgehog.runner.*
import refined4s.*
import refined4s.cats.derivation.CatsShowSpec.{MyRefinedNewtype, MyRefinedType}
import refined4s.modules.cats.derivation.CatsShowSpec.{MyRefinedNewtype, MyRefinedType}

/** @author Kevin Lee
* @since 2023-12-07
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package refined4s.cats.derivation
package refined4s.modules.cats.derivation

import cats.*
import cats.syntax.all.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package refined4s.cats.derivation
package refined4s.modules.cats.derivation

import cats.*
import cats.syntax.all.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package refined4s.cats
package refined4s.modules.cats

import cats.*
import cats.syntax.all.*
Expand All @@ -7,7 +7,7 @@ import hedgehog.*
import hedgehog.runner.*
import refined4s.*
import refined4s.InlinedRefinedType.MoreThan2CharsString
import refined4s.cats.syntax.*
import refined4s.modules.cats.syntax.*

/** @author Kevin Lee
* @since 2023-12-06
Expand Down Expand Up @@ -62,7 +62,7 @@ object syntaxSpec extends Properties {

def testAValidateAsTInvalid: Result = {
val expected =
"Failed to create refined4s.cats.syntaxSpec.NewMyType: Invalid value: []. It has to be a non-empty String but got \"\""
"Failed to create refined4s.modules.cats.syntaxSpec.NewMyType: Invalid value: []. It has to be a non-empty String but got \"\""
.leftNec[NewMyType]
val actual = "".validateAs[NewMyType]
actual ==== expected
Expand All @@ -80,7 +80,7 @@ object syntaxSpec extends Properties {

def testValidateAsTAInvalid: Result = {
val expected =
"Failed to create refined4s.cats.syntaxSpec.NewMyType: Invalid value: []. It has to be a non-empty String but got \"\""
"Failed to create refined4s.modules.cats.syntaxSpec.NewMyType: Invalid value: []. It has to be a non-empty String but got \"\""
.leftNec[NewMyType]
val actual = validateAs("")[NewMyType]
actual ==== expected
Expand All @@ -106,7 +106,7 @@ object syntaxSpec extends Properties {
s <- Gen.string(Gen.unicode, Range.linear(0, 2)).log("s")
} yield {
val expected =
s"Failed to create refined4s.cats.syntaxSpec.NewMoreThan2CharsString: Invalid value: [$s]. The String should have more than 2 chars but got $s instead"
s"Failed to create refined4s.modules.cats.syntaxSpec.NewMoreThan2CharsString: Invalid value: [$s]. The String should have more than 2 chars but got $s instead"
.leftNec[NewMoreThan2CharsString]

val actual = s.validateAs[NewMoreThan2CharsString]
Expand Down Expand Up @@ -138,7 +138,7 @@ object syntaxSpec extends Properties {
s <- Gen.string(Gen.unicode, Range.linear(0, 2)).log("s")
} yield {
val expected =
s"Failed to create refined4s.cats.syntaxSpec.NewMoreThan2CharsString: Invalid value: [$s]. The String should have more than 2 chars but got $s instead"
s"Failed to create refined4s.modules.cats.syntaxSpec.NewMoreThan2CharsString: Invalid value: [$s]. The String should have more than 2 chars but got $s instead"
.leftNec[NewMoreThan2CharsString]
val actual = validateAs(s)[NewMoreThan2CharsString]
(actual ==== expected).log(
Expand Down

0 comments on commit e77602c

Please sign in to comment.