[Nice-commit] Nice/testsuite/compiler/methods nativeOverride.testsuite,1.6,1.7
Brought to you by:
bonniot
From: <bo...@us...> - 2003-08-30 21:24:47
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods In directory sc8-pr-cvs1:/tmp/cvs-serv16339/testsuite/compiler/methods Modified Files: nativeOverride.testsuite Log Message: Fixed the testcases by implemented the missing methods. It is important to extend AbstractList and not ArrayList, or the tested situation disappears. Index: nativeOverride.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/nativeOverride.testsuite,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** nativeOverride.testsuite 30 Aug 2003 21:11:29 -0000 1.6 --- nativeOverride.testsuite 30 Aug 2003 21:24:42 -0000 1.7 *************** *** 194,207 **** Collection<String> b = new Bar(); /// Toplevel ! class Bar<T> extends ArrayList<T> { isEmpty() = false; } ! /// PASS bug Collection<String> b = new Bar(); /// Toplevel ! class Bar<T> extends ArrayList<T> { removeAll(other@Bar) = false; } --- 194,213 ---- Collection<String> b = new Bar(); /// Toplevel ! class Bar<T> extends AbstractList<T> { isEmpty() = false; + + size() = 0; + get(i) = cast(null); } ! /// PASS Collection<String> b = new Bar(); /// Toplevel ! class Bar<T> extends AbstractList<T> { removeAll(other@Bar) = false; + + size() = 0; + get(i) = cast(null); } |