Package org.codehaus.jparsec.pattern

Examples of org.codehaus.jparsec.pattern.CharPredicate


* @author benyu
*/
public class IndentationTest extends TestCase {
 
  public void testInlineWhitespace() {
    CharPredicate predicate = Indentation.INLINE_WHITESPACE;
    assertTrue(predicate.isChar(' '));
    assertTrue(predicate.isChar('\t'));
    assertTrue(predicate.isChar('\r'));
    assertFalse(predicate.isChar('\n'));
    assertEquals("whitespace", predicate.toString());
  }
View Full Code Here


*/
public class IndentationTest {

  @Test
  public void testInlineWhitespace() {
    CharPredicate predicate = Indentation.INLINE_WHITESPACE;
    assertTrue(predicate.isChar(' '));
    assertTrue(predicate.isChar('\t'));
    assertTrue(predicate.isChar('\r'));
    assertFalse(predicate.isChar('\n'));
    assertEquals("whitespace", predicate.toString());
  }
View Full Code Here

TOP

Related Classes of org.codehaus.jparsec.pattern.CharPredicate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.