Created
September 26, 2018 18:24
-
-
Save nukisashineko/d5e1fe25feebd69ba1351ce94f56b390 to your computer and use it in GitHub Desktop.
scala-hello-world
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
class HelloWorld() { | |
def main (): Int ={ | |
println("Hello World") | |
0 | |
} | |
} |
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
import org.specs2.mutable.Specification | |
class HelloWorldTest extends Specification{ | |
"HelloWorld#main" should { | |
"return 0" in { | |
val helloWorld = new HelloWorld | |
helloWorld.main mustEqual 0 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment