From 8bd03e063c412cefcd52f88fef68283290893708 Mon Sep 17 00:00:00 2001 From: Michael Thorpe Date: Thu, 31 Jan 2013 21:06:02 +0000 Subject: SI-5151 - Add firstKey and lastKey to LongMap. --- test/files/run/longmap.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/run/longmap.scala (limited to 'test/files/run/longmap.scala') diff --git a/test/files/run/longmap.scala b/test/files/run/longmap.scala new file mode 100644 index 0000000000..1f18eebd31 --- /dev/null +++ b/test/files/run/longmap.scala @@ -0,0 +1,8 @@ +object Test extends App{ + import scala.collection.immutable.LongMap; + + val it = LongMap(8L -> 2, 11L -> 3, 1L -> 2, 7L -> 13); + + assert(it.firstKey == 1L); + assert(it.lastKey == 11L); +} -- cgit v1.2.3