<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Sounds like a good test to add, here is how to submit it as a pull
    request:<br>
    <a class="moz-txt-link-freetext" href="http://www.athico.com/Getting_Involved/gettinginvolved.html">http://www.athico.com/Getting_Involved/gettinginvolved.html</a><br>
    <br>
    Mark<br>
    <br>
    On 24/02/2012 05:33, Benjamin Bennett wrote:
    <blockquote
cite="mid:CAGnU7ugtceO5P2dq5H8wFS3qicxWbBWasGxpJKJ-zdg1vJkHJQ@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote"><br>
        Just wanted to pass it on was trying to track down what was
        causing&nbsp; parse error . <br>
        Here is&nbsp; test case . I tried to&nbsp; bisect but couldn't get it to
        compile on every revision. Most likely my set up . <br>
        <br>
        But here is test case that is broken sometime after&nbsp; 5.3.0.CR1 .
        Please don't flame me if this is the wrong channel to send this
        too. <br>
        <br>
        public void testParseSlashStarInString() {<br>
        <br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; String str = "";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "package org.drools \n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "import org.drools.Cheese \n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "dialect \"mvel\"\n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "rule rule1 \n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "&nbsp; when \n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "&nbsp;&nbsp;&nbsp; $c : Cheese() \n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += " \n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "&nbsp; then \n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "&nbsp;&nbsp;&nbsp; Cheese hold= new Cheese(\"/*\",5);\n";<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; str += "end\n";<br>
        <br>
        <br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; final KnowledgeBuilder kbuilder =
        KnowledgeBuilderFactory.newKnowledgeBuilder();<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
        kbuilder.add(ResourceFactory.newByteArrayResource(str.getBytes()),
        ResourceType.DRL);<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; StringBuffer stringBuffer = new StringBuffer();<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (KnowledgeBuilderError e : kbuilder.getErrors()) {<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stringBuffer.append(e.toString());<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Assert.assertEquals(stringBuffer.toString(), 0,
        kbuilder.getErrors().size());<br>
        )<span class="HOEnZb"><font color="#888888"><br clear="all">
            <br>
          </font></span></div>
      -- <br>
      Sincerely,<br>
      <br>
      Benjamin Bennett<br>
      314.246.0645<br>
      <a moz-do-not-send="true" href="mailto:benbennett@gmail.com"
        target="_blank">benbennett@gmail.com</a><br>
      <br>
      "For a successful technology, reality must take precedence over
      public relations, for Nature cannot be fooled."<br>
      Richard Feynman<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>