number stuff

This commit is contained in:
Steven Degutis
2012-03-11 19:04:41 -05:00
parent 5b9963f88d
commit d8bdbef975
2 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,10 @@
package go_koans
func testBasics() {
assert(__bool__ == true) // what is truth?
func testNumbers() {
//assert(__bool__ == true) // what is truth?
//assert(__bool__ != false) // in it there is nothing false
//assert(!__ != true) // in it there is nothing false
//assert(__int__ == 1.0000000000000000000000000000000000000) // precision is in the eye of the beholder
//assert(true == 1)
}

View File

@@ -14,10 +14,11 @@ var __string__ string = "impossibly lame value"
var __int__ int = -1
var __byte__ byte = 255
var __bool__ bool = false
var __float32__ float32 = -1.0
func TestKoans(t *testing.T) {
//testBasics()
testStrings()
testNumbers()
//testStrings()
//testArrays()
fmt.Printf("\n%c[32;1mYou won life. Good job.\n\n", 27)