[Nice-commit] Nice/testsuite/compiler/methods ambiguity.testsuite,1.4,1.5 coverage.testsuite,1.4,1.5
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2005-01-17 18:27:12
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12611/F:/nice/testsuite/compiler/methods Modified Files: ambiguity.testsuite coverage.testsuite integer.testsuite string.testsuite Log Message: Various additional testcases. Index: ambiguity.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/ambiguity.testsuite,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ambiguity.testsuite 15 Sep 2004 12:58:57 -0000 1.4 --- ambiguity.testsuite 17 Jan 2005 18:26:10 -0000 1.5 *************** *** 22,23 **** --- 22,32 ---- void foo(int x, ?int y) {} override void foo(int x, int y) {} + + /// FAIL + /// Toplevel + class A {} + class B extends A {} + void /*/// FAIL HERE */ foo(A x, A y) {} + foo(B x, B y) {} + foo(B x, B y) {} + \ No newline at end of file Index: string.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/string.testsuite,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** string.testsuite 30 Nov 2003 14:24:35 -0000 1.6 --- string.testsuite 17 Jan 2005 18:26:12 -0000 1.7 *************** *** 85,86 **** --- 85,95 ---- assert foo(x, "xy\"#z", x) == 3; assert foo(x, "", x) == 4; + + /// PASS + /// package a + /// Toplevel + let String test = "\b\t\n\f\r\"\'\\\035abc1\77xyz\44"; + boolean foo(String x) = false; + foo("\b\t\n\f\r\"\'\\\035abc1\77xyz\44") = true; + /// package b import a + assert foo(test); Index: coverage.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/coverage.testsuite,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** coverage.testsuite 7 Aug 2004 14:20:28 -0000 1.4 --- coverage.testsuite 17 Jan 2005 18:26:12 -0000 1.5 *************** *** 43,44 **** --- 43,53 ---- <T> boolean foo(T x) = false; foo(Object x) = true; + + /// PASS + /// Toplevel + interface I {} + class A implements I {} + interface K extends I {} + void foo(I x) {} + foo(A x) {} + foo(K x) {} Index: integer.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/integer.testsuite,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** integer.testsuite 30 Nov 2003 14:24:35 -0000 1.15 --- integer.testsuite 17 Jan 2005 18:26:12 -0000 1.16 *************** *** 230,231 **** --- 230,237 ---- assert foo('\\') == 1; assert foo('\'') == 2; + + /// PASS + /// Toplevel + void foo(int x, int y) {} + foo(3, y>5) {} + foo(x>5, 3) {} |