Skip to content

Instantly share code, notes, and snippets.

@nukisashineko
Created September 26, 2018 18:24
Show Gist options
  • Save nukisashineko/d5e1fe25feebd69ba1351ce94f56b390 to your computer and use it in GitHub Desktop.
Save nukisashineko/d5e1fe25feebd69ba1351ce94f56b390 to your computer and use it in GitHub Desktop.
scala-hello-world
class HelloWorld() {
def main (): Int ={
println("Hello World")
0
}
}
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