1 19 20 package org.netbeans.modules.lexer.demo.handcoded.plain; 21 22 import org.netbeans.api.lexer.Language; 23 import org.netbeans.spi.lexer.util.LexerTestDescription; 24 25 31 32 public class PlainTestDescription extends LexerTestDescription { 33 34 public Language getLanguage() { 35 return PlainLanguage.get(); 36 } 37 38 public TestRound[] getTestRounds() { 39 return new TestRound[] { 40 new TestRound(10000, 0.6, 5, 0.4, 4), 41 new TestRound(10000, 0.4, 1, 0.6, 3) 42 }; 43 } 44 45 public TestChar[] getTestChars() { 46 return new TestChar[] { 47 new TestChar('\n', 0.1) 48 }; 49 } 50 51 public TestCharInterval[] getTestCharIntervals() { 52 return new TestCharInterval[] { 53 new TestCharInterval('0', '9', 0.3), 54 new TestCharInterval('a', 'z', 0.3) 55 }; 56 } 57 58 public int getDebugLevel() { 59 return 0; } 61 62 63 } 64 65 | Popular Tags |