This commit is contained in:
Steven Degutis
2012-03-16 07:20:08 -05:00
parent a1877bcd5f
commit 173307660d
2 changed files with 13 additions and 2 deletions

11
about_files.go Normal file
View File

@@ -0,0 +1,11 @@
package go_koans
import "io/ioutil"
import "strings"
func testFiles() {
filename := "about_files.go"
contents, _ := ioutil.ReadFile(filename)
lines := strings.Split(string(contents), "\n")
assert(lines[5] == __string__) // handling files is too trivial
}

View File

@@ -24,10 +24,10 @@ func TestKoans(t *testing.T) {
//testControlFlow()
//testEnumeration()
//testAnonymousFunctions()
testVariadicFunctions()
//testVariadicFunctions()
testFiles()
// TODO: ie, gameplan
//testFiles()
//testInterfaces()
//testMaps()
//testStructs()