pycontextinformationvalidatortest.java

来自「Python Development Environment (Python I」· Java 代码 · 共 25 行

JAVA
25
字号
package org.python.pydev.editor.codecompletion;

import org.eclipse.jface.text.Document;

import junit.framework.TestCase;

public class PyContextInformationValidatorTest extends TestCase {

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	public void testIt() throws Exception {
		PyContextInformationValidator validator = new PyContextInformationValidator();
		assertEquals(1, validator.getCharCount(new Document("m1(a,b)\n"), 3, 5, ",", "", true));
		assertEquals(1, validator.getCharCount(new Document("m1('',b)\n"), 3, 6, ",", "", true));
		assertEquals(1, validator.getCharCount(new Document("m1('''(''',b)\n"), 3, 11, ",", "", true));
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?