summaryrefslogtreecommitdiff
path: root/test/files/run/longmap.scala
diff options
context:
space:
mode:
authorMichael Thorpe <mt2309@ic.ac.uk>2013-01-31 21:06:02 +0000
committerMichael Thorpe <mt2309@ic.ac.uk>2013-01-31 21:06:02 +0000
commit8bd03e063c412cefcd52f88fef68283290893708 (patch)
tree200f01b54b6d4ce8ed8e746271c020ae41f0bb3e /test/files/run/longmap.scala
parent1e69a0b67a184ca9d0b205a407e34cf85d11372c (diff)
downloadscala-8bd03e063c412cefcd52f88fef68283290893708.tar.gz
scala-8bd03e063c412cefcd52f88fef68283290893708.tar.bz2
scala-8bd03e063c412cefcd52f88fef68283290893708.zip
SI-5151 - Add firstKey and lastKey to LongMap.
Diffstat (limited to 'test/files/run/longmap.scala')
-rw-r--r--test/files/run/longmap.scala8
1 files changed, 8 insertions, 0 deletions
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);
+}