diff options
author | Daniel C. Sobral <dcsobral@gmail.com> | 2012-01-17 17:26:59 -0200 |
---|---|---|
committer | Daniel C. Sobral <dcsobral@gmail.com> | 2012-01-17 17:26:59 -0200 |
commit | 76caa37f22b70b126563df8a5eeab1b8bf693fc9 (patch) | |
tree | 2480da56cb8bebd0aa2843e1c9b87c41957bd226 /test/files/run/interpolation.scala | |
parent | 9d55bf45cd13107ad8f3e5e75737f37e75b22f90 (diff) | |
download | scala-76caa37f22b70b126563df8a5eeab1b8bf693fc9.tar.gz scala-76caa37f22b70b126563df8a5eeab1b8bf693fc9.tar.bz2 scala-76caa37f22b70b126563df8a5eeab1b8bf693fc9.zip |
Fix check for number of arguments
Fix the test for number of arguments by passing all arguments instead
of passing the argument list as a single argument.
Add positive and negative tests for it.
Diffstat (limited to 'test/files/run/interpolation.scala')
-rw-r--r-- | test/files/run/interpolation.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/interpolation.scala b/test/files/run/interpolation.scala index 232a180bcd..a0a185eaab 100644 --- a/test/files/run/interpolation.scala +++ b/test/files/run/interpolation.scala @@ -5,6 +5,8 @@ object Test extends App { println(f"Bob is $n%2d years old") println(s"Bob will be ${n+1} years old") println(f"Bob will be ${n+1}%2d years old") + println(s"$n+1 = ${n+1}") + println(f"$n%d+1 = ${n+1}%d") } def test2(f: Float) = { |