diff --git a/about_maps.go b/about_maps.go index d2af559..6239582 100644 --- a/about_maps.go +++ b/about_maps.go @@ -11,11 +11,11 @@ func aboutMaps() { assert(age == __int__) // map syntax is warmly familiar age, ok := ages["bob"] - assert(ok == __bool__) // with a handy addition for presence checking + assert(ok == __bool__) // with a handy multiple-assignment variation age, ok = ages["steven"] assert(age == __int__) // the zero value is used when absent - assert(__bool__) // though there are better ways to check for presence + assert(ok == __boolean__) // though there are better ways to check for presence assert(len(ages) == __int__) // length is based on keys @@ -27,5 +27,5 @@ func aboutMaps() { delete(ages, "steven") age, ok = ages["steven"] - assert(__bool__) // key/value pairs can be removed + assert(ok == __boolean__) // key/value pairs can be removed } diff --git a/setup_koans_test.go b/setup_koans_test.go index 28c63b6..4dcd709 100644 --- a/setup_koans_test.go +++ b/setup_koans_test.go @@ -15,6 +15,7 @@ const ( __int__ int = -1 __byte__ byte = 255 __bool__ bool = false // ugh + __boolean__ bool = true // oh well __float32__ float32 = -1.0 __delete_me__ bool = false )