forked from quii/learn-go-with-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove failing test, not too useful as an example and then it allows …
…us to set up some automated builds in travis later
- Loading branch information
Showing
5 changed files
with
11 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package main | ||
|
||
func Repeat(character string) (repeated string) { | ||
func Repeat(character string) (repeated string) { | ||
for i := 0; i < 5; i++ { | ||
repeated = repeated + character | ||
} | ||
return | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package main | ||
|
||
const repeatCount = 5 | ||
|
||
func Repeat(character string) (repeated string) { | ||
for i := 0; i < 5; i++ { | ||
repeated = repeated + character | ||
for i := 0; i < repeatCount; i++ { | ||
repeated += character | ||
} | ||
return | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.