Initial Commit
This commit is contained in:
0
scala/hello-world/src/main/scala/.keep
Normal file
0
scala/hello-world/src/main/scala/.keep
Normal file
15
scala/hello-world/src/test/scala/HelloWorldTest.scala
Normal file
15
scala/hello-world/src/test/scala/HelloWorldTest.scala
Normal file
@@ -0,0 +1,15 @@
|
||||
import org.scalatest.{Matchers, FunSuite}
|
||||
|
||||
class HelloWorldTest extends FunSuite with Matchers {
|
||||
test("Without name") {
|
||||
HelloWorld.hello() should be ("Hello, World!")
|
||||
}
|
||||
|
||||
test("with name") {
|
||||
HelloWorld.hello("Jane") should be ("Hello, Jane!")
|
||||
}
|
||||
|
||||
test("with umlaut name") {
|
||||
HelloWorld.hello("Jürgen") should be ("Hello, Jürgen!")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user