diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/files/run/colltest1.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/run/colltest1.scala b/test/files/run/colltest1.scala index 9401c63705..a918546be2 100755 --- a/test/files/run/colltest1.scala +++ b/test/files/run/colltest1.scala @@ -170,14 +170,14 @@ object Test extends Application { m ++= ('J' to 'Z') map (x => (x.toString -> x.toString)) println(m) assert(!m.isEmpty) - assert(m.keys forall (k => (m get k) == Some(k))) - assert(m.keys forall (k => (m apply k) == k)) - assert(m.keys forall (m contains)) + assert(m.keySet forall (k => (m get k) == Some(k))) + assert(m.keySet forall (k => (m apply k) == k)) + assert(m.keySet forall (m contains)) assert(m.getOrElse("7", "@") == "@") - assert(m.keys.size == 26) + assert(m.keySet.size == 26) assert(m.size == 26) - assert(m.keys == Set() ++ m.keys) - assert(m.keysIterator.toList == m.keys.toList) + assert(m.keySet == Set() ++ m.keysIterator) + assert(m.keySet.toList == m.keysIterator.toList) val m1 = empty ++ m val mm = m -- m.keySet.toList assert(mm.isEmpty, mm) |