From cc97afe49feb585819abf0b5ae6fc25c34e349df Mon Sep 17 00:00:00 2001 From: David MacIver Date: Mon, 27 Oct 2008 15:24:43 +0000 Subject: Added firstKey and lastKey to IntMap. --- test/files/run/intmap.check | 0 test/files/run/intmap.scala | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 test/files/run/intmap.check create mode 100644 test/files/run/intmap.scala (limited to 'test/files/run') diff --git a/test/files/run/intmap.check b/test/files/run/intmap.check new file mode 100644 index 0000000000..e69de29bb2 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); +} -- cgit v1.2.3