[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor/actions PyFormatStdTest.java,1.1,1.2
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-02-24 17:44:27
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28612/tests/org/python/pydev/editor/actions Modified Files: PyFormatStdTest.java Log Message: formatting improved Index: PyFormatStdTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/actions/PyFormatStdTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PyFormatStdTest.java 23 Feb 2005 14:29:37 -0000 1.1 --- PyFormatStdTest.java 24 Feb 2005 17:44:18 -0000 1.2 *************** *** 144,147 **** --- 144,162 ---- } + public void testFormatInnerParams2(){ + std.spaceAfterComma = true; + std.parametersWithSpace = true; + + String s = ""+ + "def a(a, b):\n"+ + " return ( callA() + callB(b+b) ) \n"; + + String s1 = ""+ + "def a( a, b ):\n"+ + " return ( callA( ) + callB( b+b ) ) \n"; + + assertEquals(s1, PyFormatStd.formatStr(s, std)); + } + |