From: <fwi...@us...> - 2009-09-09 17:35:47
|
Revision: 6777 http://jython.svn.sourceforge.net/jython/?rev=6777&view=rev Author: fwierzbicki Date: 2009-09-09 17:35:38 +0000 (Wed, 09 Sep 2009) Log Message: ----------- Test PyTuple for http://bugs.jython.org/issue1419 "Bug in PyTuple.indexOf and PyList.indexOf". Added Paths: ----------- trunk/jython/tests/java/org/python/core/PyTupleTest.java Added: trunk/jython/tests/java/org/python/core/PyTupleTest.java =================================================================== --- trunk/jython/tests/java/org/python/core/PyTupleTest.java (rev 0) +++ trunk/jython/tests/java/org/python/core/PyTupleTest.java 2009-09-09 17:35:38 UTC (rev 6777) @@ -0,0 +1,25 @@ +package org.python.core; + +import junit.framework.TestCase; + +/** + * Tests for PyTuple as Java Tuple. + */ +public class PyTupleTest extends TestCase { + + @Override + protected void setUp() throws Exception { + } + + @Override + protected void tearDown() throws Exception { + } + + // Test for http://bugs.jython.org/issue1419 + // "Bug in PyTuple.indexOf and PyTuple.indexOf" + public void testFoo() { + PyTuple p = new PyTuple(new PyString("foo"), new PyString("bar")); + assertEquals(0, p.indexOf("foo")); + assertEquals(1, p.indexOf("bar")); + } +} Property changes on: trunk/jython/tests/java/org/python/core/PyTupleTest.java ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |