/** ***************************************************************** */ public static void test_Oflow() throws ReSyntaxException, CompileDfaException, java.io.IOException { StringBuffer s = new StringBuffer(); for (int i = 0; i < 256; i++) s.append("(!a)x"); Exception e = null; try { Nfa nfa = new Nfa(s, Copy.COPY); } catch (ReSyntaxException _e) { // we want this to happen e = _e; } assertTrue(e instanceof ReSyntaxException); assertTrue(e.toString().startsWith("ReSyntaxException: too many")); }