-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f65f36
commit 33013f1
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
chimney-cats/src/test/scala-2.13+/io/scalaland/chimney/cats/CatsData213Spec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.scalaland.chimney.cats | ||
|
||
import cats.data.NonEmptyLazyList | ||
import io.scalaland.chimney.ChimneySpec | ||
import io.scalaland.chimney.dsl.* | ||
|
||
class CatsData213Spec extends ChimneySpec{ | ||
|
||
test("DSL should handle transformation to and from cats.data.NonEmptyLazyList") { | ||
List("test").transformIntoPartial[NonEmptyLazyList[String]].asOption ==> Some(NonEmptyLazyList("test")) | ||
List.empty[String].transformIntoPartial[NonEmptyLazyList[String]].asOption ==> None | ||
|
||
NonEmptyLazyList("test").transformInto[List[String]] ==> List("test") | ||
} | ||
} |