summaryrefslogtreecommitdiff
path: root/scalanativelib/test/resources/hello-native-world/test/src/scalatest
diff options
context:
space:
mode:
Diffstat (limited to 'scalanativelib/test/resources/hello-native-world/test/src/scalatest')
-rw-r--r--scalanativelib/test/resources/hello-native-world/test/src/scalatest/ArgsParserSpec.scala21
-rw-r--r--scalanativelib/test/resources/hello-native-world/test/src/scalatest/MainSpec.scala18
2 files changed, 39 insertions, 0 deletions
diff --git a/scalanativelib/test/resources/hello-native-world/test/src/scalatest/ArgsParserSpec.scala b/scalanativelib/test/resources/hello-native-world/test/src/scalatest/ArgsParserSpec.scala
new file mode 100644
index 00000000..dd160989
--- /dev/null
+++ b/scalanativelib/test/resources/hello-native-world/test/src/scalatest/ArgsParserSpec.scala
@@ -0,0 +1,21 @@
+package hellotest
+
+import hello._
+import org.scalatest._
+
+class ArgsParserSpec extends FlatSpec with Matchers {
+
+ behavior of "ArgsParser"
+
+ "parse" should "one" in {
+ val result = ArgsParser.parse("hello:world")
+ result should have length 2
+ result should contain only ("hello", "world")
+ }
+
+ it should "two" in {
+ val result = ArgsParser.parse("hello:world")
+ result should have length 80
+ }
+
+}
diff --git a/scalanativelib/test/resources/hello-native-world/test/src/scalatest/MainSpec.scala b/scalanativelib/test/resources/hello-native-world/test/src/scalatest/MainSpec.scala
new file mode 100644
index 00000000..582c3692
--- /dev/null
+++ b/scalanativelib/test/resources/hello-native-world/test/src/scalatest/MainSpec.scala
@@ -0,0 +1,18 @@
+package hellotest
+
+import hello._
+import org.scalatest._
+
+class MainSpec extends FlatSpec with Matchers {
+
+ behavior of "Main"
+
+ "vmName" should "contain Native" in {
+ Main.vmName should include ("Native")
+ }
+
+ it should "contain Scala" in {
+ Main.vmName should include ("Scala")
+ }
+
+}