*/
public void testXdigitNegatedAsciiCharacter() {
ArrayList<String> params = new ArrayList<String>();
params.add("xdigit");
RegexpOperator spec = (new NegatedAsciiCharacterClass.Factory()).createOperator(params);
NondeterministicAutomatonByThompsonApproach automaton =
new NondeterministicAutomatonByThompsonApproach(spec.createAutomaton(
new ArrayList<AutomatonSpecification>()));
assertFalse(automaton.accepts("0"));
assertFalse(automaton.accepts("8"));
assertFalse(automaton.accepts("A"));
assertFalse(automaton.accepts("f"));
assertFalse(automaton.accepts("F"));
assertFalse(automaton.accepts("a"));
assertTrue(automaton.accepts("!"));
assertTrue(automaton.accepts("("));
assertTrue(automaton.accepts("%"));
assertFalse(automaton.accepts("sfggg"));
}