diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/mapValues.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/mapValues.scala b/test/files/run/mapValues.scala new file mode 100644 index 0000000000..d3266bd18f --- /dev/null +++ b/test/files/run/mapValues.scala @@ -0,0 +1,8 @@ +object Test { + val m = Map(1 -> 1, 2 -> 2) + val mv = (m mapValues identity) - 1 + + def main(args: Array[String]): Unit = { + assert(mv.size == 1) + } +} |