[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor/actions PyAddSingleBlockCommentTest.java
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-07-19 23:43:54
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17561/tests/org/python/pydev/editor/actions Added Files: PyAddSingleBlockCommentTest.java Log Message: --- NEW FILE: PyAddSingleBlockCommentTest.java --- /* * Created on Jul 19, 2006 * @author Fabio */ package org.python.pydev.editor.actions; import org.eclipse.jface.text.Document; import org.python.pydev.core.docutils.PySelection; import junit.framework.TestCase; public class PyAddSingleBlockCommentTest extends TestCase { protected void setUp() throws Exception { super.setUp(); } protected void tearDown() throws Exception { super.tearDown(); } public void testBlock() throws Exception { String s = "cc"; Document doc = new Document(s); PyAddSingleBlockComment.perform(new PySelection(doc, 0,0,0)); assertEquals("#------ cc", doc.get()); s = " cc"; doc = new Document(s); PyAddSingleBlockComment.perform(new PySelection(doc, 0,0,0)); assertEquals(" #-- cc", doc.get()); } } |