diff options
Diffstat (limited to 'scalanativelib/test/resources/hello-native-world/test/src/scalatest/ArgsParserSpec.scala')
-rw-r--r-- | scalanativelib/test/resources/hello-native-world/test/src/scalatest/ArgsParserSpec.scala | 21 |
1 files changed, 21 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 + } + +} |