[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor PyCodeScannerTest.java,NONE,1.1
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-03-21 16:31:30
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11134/tests/org/python/pydev/editor Added Files: PyCodeScannerTest.java Log Message: --- NEW FILE: PyCodeScannerTest.java --- /* * Created on Mar 21, 2005 * * @author Fabio Zadrozny */ package org.python.pydev.editor; import org.python.pydev.editor.PyCodeScanner.NumberDetector; import junit.framework.TestCase; /** * @author Fabio Zadrozny */ public class PyCodeScannerTest extends TestCase { private NumberDetector detector; public static void main(String[] args) { junit.textui.TestRunner.run(PyCodeScannerTest.class); } /* * @see TestCase#setUp() */ protected void setUp() throws Exception { super.setUp(); detector = new PyCodeScanner.NumberDetector(); } /* * @see TestCase#tearDown() */ protected void tearDown() throws Exception { super.tearDown(); } /** * */ public void testNumber() { assertTrue(detector.isWordStart('1')); assertTrue(detector.isWordPart('.')); assertTrue(detector.isWordPart('2')); assertTrue(detector.isWordPart('e')); assertTrue(detector.isWordPart('5')); assertFalse(detector.isWordPart(' ')); } } |