Run "go fmt" on all .go files

This commit is contained in:
John Gosset
2014-12-09 09:04:26 -05:00
parent 19cbebee5e
commit ac49ca7392
20 changed files with 380 additions and 379 deletions

View File

@@ -7,9 +7,9 @@ func aboutBasics() {
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__)
assert(5%2 == __int__)
assert(5*2 == __int__)
assert(5^2 == __int__)
var x int
assert(x == __int__) // zero values are valued in Go

View File

@@ -2,7 +2,7 @@ package go_koans
func isPrimeNumber(possiblePrime int) bool {
for underPrime := 2; underPrime < possiblePrime; underPrime++ {
if possiblePrime % underPrime == 0 {
if possiblePrime%underPrime == 0 {
return false
}
}
@@ -10,7 +10,7 @@ func isPrimeNumber(possiblePrime int) bool {
}
func findPrimeNumbers(channel chan int) {
for i := 2; /* infinite loop */ ; i++ {
for i := 2; ; /* infinite loop */ i++ {
// your code goes here
assert(i < 100) // i is afraid of heights

View File

@@ -20,6 +20,7 @@ const (
__float32__ float32 = -1.0
__delete_me__ bool = false
)
var __runner__ runner = nil
func TestKoans(t *testing.T) {