py/test.go
2014-02-21 21:25:11 +01:00

24 lines
521 B
Go

package main
import (
. "./py"
"fmt"
)
func main(){
var test []interface{}
test = append(test, Sum(Map(func (x int) int {return x*x}, Range(30))))
test = append(test, Chr(89))
test = append(test, Ord("a"))
test = append(test, Bin(144))
test = append(test, Hex(5831))
test = append(test, Bool(1.2))
test = append(test, Abs(-19.3))
test = append(test, Pow(2,16))
test = append(test, Type(true))
test = append(test, Open("py/misc.go"))
//test = append(test, Input("Scrivi qualcosa: "))
fmt.Println(test)
}