-
元のコードにテストコードが0
- 200k行なのにテストないとか・・・
-
自社製Webフレームワーク使ってる
This file contains hidden or 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
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
url 'http://oss.sonatype.org/content/repositories/snapshots' | |
} | |
mavenLocal() | |
} | |
dependencies { |
This file contains hidden or 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
package coderetreat.lifegame; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.hamcrest.CoreMatchers.not; | |
import static org.junit.Assert.assertThat; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.HashSet; | |
import java.util.Set; |
This file contains hidden or 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
package lifegame | |
import org.scalatest._ | |
import junit.JUnitRunner | |
import org.junit.runner.RunWith | |
class Board(size: (Int, Int), alivePoints: Set[(Int, Int)]) { | |
type Coordinate = (Int, Int) | |
val allCoordinates = coordinates((0, 0), (size._1 - 1, size._2 - 1)) |
This file contains hidden or 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
// 指定した値まで表示するように変更 | |
// fizzbuzz(15) -> 1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz | |
fizz = function f() { | |
fizz = function() { | |
fizz = function() { | |
fizz = f | |
return "Fizz" | |
} | |
} |