From a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 24 Apr 2010 02:49:34 +0000 Subject: Took another of universal equality's victims to... Took another of universal equality's victims to the hospital. Closes #3348, no review. --- test/files/run/mapValues.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/run/mapValues.scala (limited to 'test/files') 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) + } +} -- cgit v1.2.3