From: <zy...@us...> - 2010-08-04 17:22:19
|
Revision: 7084 http://jython.svn.sourceforge.net/jython/?rev=7084&view=rev Author: zyasoft Date: 2010-08-04 17:22:13 +0000 (Wed, 04 Aug 2010) Log Message: ----------- Enabled ListTest#test_indexOf, this closes out issue #1395 Modified Paths: -------------- trunk/jython/NEWS trunk/jython/tests/java/javatests/ListTest.java Modified: trunk/jython/NEWS =================================================================== --- trunk/jython/NEWS 2010-08-01 12:48:48 UTC (rev 7083) +++ trunk/jython/NEWS 2010-08-04 17:22:13 UTC (rev 7084) @@ -2,6 +2,7 @@ Jython 2.5.2b2 Bugs Fixed + - [ 1395 ] PyList.indexOf() and PyTuple.indexOf() do not function properly - [ 1373 ] Jython ClassLoader getResource does not work - [ 1506 ] Jython applies PEP263 pattern for determining source-code encoding on noncomments - [ 1630 ] threading.Thread lacks __tojava__ method Modified: trunk/jython/tests/java/javatests/ListTest.java =================================================================== --- trunk/jython/tests/java/javatests/ListTest.java 2010-08-01 12:48:48 UTC (rev 7083) +++ trunk/jython/tests/java/javatests/ListTest.java 2010-08-04 17:22:13 UTC (rev 7084) @@ -124,6 +124,7 @@ // skip unhashable types } test_subList(); + test_indexOf(); test_lastIndexOf(); test_listIterator(); test_toArray(); @@ -243,7 +244,7 @@ } /** Tests indexOf(Object o) */ - public void indexOf() { + public void test_indexOf() { TestSupport.assertThat(defaultList().indexOf(3) == 3, "indexOf(3) did not return 3"); TestSupport.assertThat(defaultList().indexOf(42) == -1, "indexOf() non-existing entry did not return -1"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |