[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor/actions PyFormatStdTest.java, 1.13, 1.14
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-08-17 00:26:39
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6943/tests/org/python/pydev/editor/actions Modified Files: PyFormatStdTest.java Log Message: <li><strong>Pydev debugger</strong>Workaround for python bug when filenames don't have absolute paths correctly generated</li> <li><strong>Pydev code-completion</strong>Wild import will only show tokens defined in __all__ (if it's available)</li> <li><strong>Interactive console</strong>: Fixed problem when more attempts to connect were needed</li> <li><strong>Interactive console</strong>Fixed console integration problem with other plugins because of interfaces not properly implemented</li> <li><strong>Code Formatter</strong>: Exponentials handled correctly</li> <li><strong>Launching</strong>: Unit-test and code-coverage may launch multiple folders/files at once</li> <li><strong>Code coverage</strong>: Number format exception no longer given when trying to show lines not executed in the editor and all lines are executed</li> Index: PyFormatStdTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/actions/PyFormatStdTest.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** PyFormatStdTest.java 19 Jul 2008 19:53:31 -0000 1.13 --- PyFormatStdTest.java 17 Aug 2008 00:26:46 -0000 1.14 *************** *** 25,29 **** n.setUp(); // DEBUG = true; ! n.testDontDisturbWildImport(); n.tearDown(); --- 25,29 ---- n.setUp(); // DEBUG = true; ! n.testCorrectExponentials(); n.tearDown(); *************** *** 502,505 **** --- 502,530 ---- + public void testCorrectExponentials(){ + std.spaceAfterComma = true; + std.parametersWithSpace = false; + std.operatorsWithSpace = true; + + + String s = "" + + "a = 1e-6\n" + //operators should not have space + "b = 1e+6\n" + + "c = 1e3 + 6\n" + + "d = 1e-3 - 6\n" + + "e = 1+3 - 6\n" + + ""; + + String s1 = "" + + "a = 1e-6\n" + //operators should not have space + "b = 1e+6\n" + + "c = 1e3 + 6\n" + + "d = 1e-3 - 6\n" + + "e = 1 + 3 - 6\n" + + ""; + + checkFormatResults(s, s1); + } + public void testEqualsWithSpace(){ std.spaceAfterComma = true; |