number stuff
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user