Files
go-koans/about_numbers.go
Steven Degutis da85af8f60 moar numbrsz
2012-03-17 12:54:25 -05:00

14 lines
351 B
Go

package go_koans
func aboutNumbers() {
assert(__bool__ == true) // what is truth?
assert(__bool__ != false) // in it there is nothing false
var i int = __int__
assert(i == 1.0000000000000000000000000000000000000) // precision is in the eye of the beholder
assert(5 % 2 == __int__)
assert(5 * 2 == __int__)
assert(5 ^ 2 == __int__)
}