[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor/codecompletion PythonShellTest.java,1.3,1
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2004-09-24 16:41:50
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/codecompletion In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15928/tests/org/python/pydev/editor/codecompletion Modified Files: PythonShellTest.java Log Message: Decoration support / Making correction assistant on Ctrl+1 Index: PythonShellTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/codecompletion/PythonShellTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PythonShellTest.java 17 Sep 2004 19:22:03 -0000 1.3 --- PythonShellTest.java 24 Sep 2004 16:41:10 -0000 1.4 *************** *** 8,18 **** import java.io.File; import java.io.IOException; - import java.util.Iterator; import java.util.List; - import org.eclipse.core.runtime.CoreException; - import junit.framework.TestCase; /** * @author Fabio Zadrozny --- 8,17 ---- import java.io.File; import java.io.IOException; import java.util.List; import junit.framework.TestCase; + import org.eclipse.core.runtime.CoreException; + /** * @author Fabio Zadrozny *************** *** 48,60 **** String str = "import math\n"; List list = shell.getGlobalCompletions(str); - for (Iterator iter = list.iterator(); iter.hasNext();) { - Object[] element = (Object[]) iter.next(); - assertEquals("math", element[0]); - assertEquals( - "This module is always available. It provides access to the\n" - + "mathematical functions defined by the C standard.", - element[1]); ! } } --- 47,63 ---- String str = "import math\n"; List list = shell.getGlobalCompletions(str); ! Object[] element = null; ! ! element = (Object[]) list.get(0); ! assertEquals("math", element[0]); ! assertEquals( ! "This module is always available. It provides access to the\n" ! + "mathematical functions defined by the C standard.", ! element[1]); ! ! element = (Object[]) list.get(1); ! assertEquals("__builtins__", element[0]); ! } *************** *** 75,82 **** assertEquals(1, list.size()); Object object[] = (Object[]) list.get(0); ! assertEquals("ERROR_COMPLETING", object[0]); } ! public void testOther() { String str = getTestStr(); --- 78,85 ---- assertEquals(1, list.size()); Object object[] = (Object[]) list.get(0); ! assertEquals("ERROR:", object[0]); } ! public void testOther() throws CoreException { String str = getTestStr(); |