aboutsummaryrefslogblamecommitdiffstats
path: root/ethutil/parsing_test.go
blob: a9ad347dd26889e240fc1ccc73639b2093992fa5 (plain) (tree)
1
2
3
4
5
6
7


               
             


                 







                                   

         





                                  
         
          
 



                           
 
package ethutil

import (
    "fmt"
    "testing"
)

func TestPreProcess(t *testing.T) {
    main, init := PreProcess(`
    init {
        // init
        if a > b {
            if { 
            }
        }
    }

    main {
        // main
        if a > b {
            if c > d {
            }
        }
    }
    `)

    fmt.Println("main")
    fmt.Println(main)
    fmt.Println("init")
    fmt.Println(init)
}