Skip to content

Commit

Permalink
* Scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsorr committed Jan 1, 2022
1 parent c51a1af commit d32181f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/src/test/scala/doric/types/SparkTypeSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,15 @@ class SparkTypeSpec extends DoricTestElements {
it("should work with custom type inside collections") {
testFlow[List[User]](List(user))
testFlow[Array[User]](Array(user))

val intToUsers = Map(1 -> List(Option(user)), 2 -> List(), 3 -> List(None))

}

it("should work for custom type with optional") {
testFlow[Option[User]](Option(user))
}

it("should work all together") {
testFlow[Map[Int, List[Option[User]]]](intToUsers)
val intToUsers = Map(1 -> List(Option(user)), 2 -> List(), 3 -> List(None))
testFlow[Map[Int, List[Option[User]]]](intToUsers)
}

}

0 comments on commit d32181f

Please sign in to comment.