diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-02-14 13:58:58 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-02-14 13:58:58 -0800 |
commit | 1dceb39bdf9d95e9f3f0887b643c7fcca6464f9e (patch) | |
tree | 8871b86d49a74c412efd90115fb1b659ae0a584f /test/files/run/t7711-script-args.scala | |
parent | 37f822eb66dc18a2b3bfdaa672081b6f08ef5688 (diff) | |
download | scala-1dceb39bdf9d95e9f3f0887b643c7fcca6464f9e.tar.gz scala-1dceb39bdf9d95e9f3f0887b643c7fcca6464f9e.tar.bz2 scala-1dceb39bdf9d95e9f3f0887b643c7fcca6464f9e.zip |
SI-7711 Test for args in script
Compiles with -Xlint to ensure there are no lurkers.
Updates `ScriptTest` to pass args to the script.
It's called `argv` partly as homage, partly because
`args` is an `Array`.
Diffstat (limited to 'test/files/run/t7711-script-args.scala')
-rw-r--r-- | test/files/run/t7711-script-args.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/t7711-script-args.scala b/test/files/run/t7711-script-args.scala new file mode 100644 index 0000000000..02535aa954 --- /dev/null +++ b/test/files/run/t7711-script-args.scala @@ -0,0 +1,7 @@ + +import scala.tools.partest.ScriptTest + +object Test extends ScriptTest { + override def extraSettings = s"${super.extraSettings} -Xlint" + override def argv = Seq("good", "news") +} |