summaryrefslogtreecommitdiff
path: root/test/files/run/intmap.scala
diff options
context:
space:
mode:
authorDavid MacIver <david.maciver@gmail.com>2008-10-27 15:24:43 +0000
committerDavid MacIver <david.maciver@gmail.com>2008-10-27 15:24:43 +0000
commitcc97afe49feb585819abf0b5ae6fc25c34e349df (patch)
treea3d45670f0bcfd4ba95cf93d27a055a9a408f740 /test/files/run/intmap.scala
parentea3a4fe4c8db32d2dc16d1ff442081d4d76ca97f (diff)
downloadscala-cc97afe49feb585819abf0b5ae6fc25c34e349df.tar.gz
scala-cc97afe49feb585819abf0b5ae6fc25c34e349df.tar.bz2
scala-cc97afe49feb585819abf0b5ae6fc25c34e349df.zip
Added firstKey and lastKey to IntMap.
Diffstat (limited to 'test/files/run/intmap.scala')
-rw-r--r--test/files/run/intmap.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/intmap.scala b/test/files/run/intmap.scala
new file mode 100644
index 0000000000..8c3e0b2ca3
--- /dev/null
+++ b/test/files/run/intmap.scala
@@ -0,0 +1,8 @@
+object Test extends Application{
+ import scala.collection.immutable.IntMap;
+
+ val it = IntMap(8 -> 2, 11 -> 3, 1 -> 2, 7 -> 13);
+
+ assert(it.firstKey == 1);
+ assert(it.lastKey == 11);
+}