diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/shared/src/main/scala/magnolia/main.scala | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/shared/src/main/scala/magnolia/main.scala b/tests/shared/src/main/scala/magnolia/main.scala index 889757c..362a0fe 100644 --- a/tests/shared/src/main/scala/magnolia/main.scala +++ b/tests/shared/src/main/scala/magnolia/main.scala @@ -1,18 +1,10 @@ package magnolia -sealed trait Tree - -case class Branch(left: List[Twig]) extends Tree -case class Leaf(node: List[String], right: List[Branch], left2: List[Branch], another: List[Leaf], broken: Double) extends Tree -case class Twig(alpha: List[Twig], beta: List[Leaf], gamma: Double, delta: List[Tree]) extends Tree +import examples._ object Main { - - def main(args: Array[String]): Unit = { - - println(implicitly[Serializer[List[Tree]]].serialize(List(Branch(List(Twig(Nil, Nil, 43, Nil)))))) - println(implicitly[Extractor[List[Tree]]].extract(Thing("42"))) + println(Branch(Branch(Leaf(1), Leaf(2)), Leaf(3)).show) } } |