aboutsummaryrefslogblamecommitdiff
path: root/tests/shared/src/main/scala/magnolia/main.scala
blob: 3ac3fb66ad815b8bd79785bbd36ca747b583a439 (plain) (tree)
1
2
3
4
5
6
7
8
9

                
                 
 

                                         
 

                                                               
 
                       


                                  

                                                           


                                                          
 


   
package magnolia

import examples._

object Main {
  def main(args: Array[String]): Unit = {

    val tree1: Tree = Branch(Branch(Leaf(1), Leaf(2)), Leaf(3))
    val tree2: Tree = Branch(Leaf(1), Leaf(2))

    println(tree1.show)
    println(tree1 isEqualTo tree1)
    println(tree1 isEqualTo tree2)

    println(Branch(Branch(Leaf(1), Leaf(2)), Leaf(3)).show)
    
    println(List[Entity](Person("John Smith",
      Address(List("1 High Street", "London", "SW1A 1AA"),
        Country("UK", "GBR", false)))).show)

  }
}