summaryrefslogtreecommitdiff
path: root/scalanativelib/test/resources/hello-native-world/test/src/utest/tests/ArgsParserTests.scala
blob: eff74f2bdcd0914d47014d83966492cd167444a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package hellotest

import hello._
import utest._

object ArgsParserTests extends TestSuite {

  def tests: Tests = Tests {
    test("one"){
      val result = ArgsParser.parse("hello:world")
      assert(
        result.length == 2,
        result == Seq("hello", "world")
      )
    }
    test("two"){ // we fail this test to check testing in scala.js
      val result = ArgsParser.parse("hello:world")
      assert(
        result.length == 80
      )
    }
  }

}