diff options
author | Paul Phillips <paulp@improving.org> | 2013-02-08 07:36:07 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-02-08 07:36:07 -0800 |
commit | ce32c1af462de7d7c6b90efd56217e202a18d1e6 (patch) | |
tree | 165a33666c360c81190e11e4297a2061d682e49e /test | |
parent | 5545f35730e54841065cf142597b4e3db3334a1b (diff) | |
parent | 8bd03e063c412cefcd52f88fef68283290893708 (diff) | |
download | scala-ce32c1af462de7d7c6b90efd56217e202a18d1e6.tar.gz scala-ce32c1af462de7d7c6b90efd56217e202a18d1e6.tar.bz2 scala-ce32c1af462de7d7c6b90efd56217e202a18d1e6.zip |
Merge pull request #2042 from mt2309/SI-5151
SI-5151 - Add firstKey and lastKey to LongMap.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/longmap.check | 0 | ||||
-rw-r--r-- | test/files/run/longmap.scala | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/longmap.check b/test/files/run/longmap.check new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/files/run/longmap.check 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); +} |