[Nice-commit] Nice/testsuite/lib/java/util collections.testsuite,1.10,1.11
Brought to you by:
bonniot
|
From: <ar...@us...> - 2003-05-01 18:51:01
|
Update of /cvsroot/nice/Nice/testsuite/lib/java/util
In directory sc8-pr-cvs1:/tmp/cvs-serv23396/F:/nice/testsuite/lib/java/util
Modified Files:
collections.testsuite
Log Message:
Made containsAll, removeAll and retainAll bivariant or something like that.
Index: collections.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/lib/java/util/collections.testsuite,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** collections.testsuite 28 Apr 2003 20:57:51 -0000 1.10
--- collections.testsuite 1 May 2003 18:50:58 -0000 1.11
***************
*** 71,72 ****
--- 71,82 ----
return res;
}
+
+ /// PASS
+ List<A> listA = new ArrayList();
+ List<B> listB = new ArrayList();
+ listB.add(new B());
+ listA.addAll(listB);
+ assert listA.containsAll(listB);
+ /// Toplevel
+ class A{}
+ class B extends A{}
|