Skip to content

Commit

Permalink
Test NonEmptyLazyList, add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszKubuszok committed Apr 24, 2024
1 parent 3f65f36 commit 33013f1
Showing 1 changed file with 15 additions and 0 deletions.
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")
}
}

0 comments on commit 33013f1

Please sign in to comment.