<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 parse error . <br>
Here is test case . I tried to 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 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>
String str = "";<br>
str += "package org.drools \n";<br>
str += "import org.drools.Cheese \n";<br>
str += "dialect \"mvel\"\n";<br>
str += "rule rule1 \n";<br>
str += " when \n";<br>
str += " $c : Cheese() \n";<br>
str += " \n";<br>
str += " then \n";<br>
str += " Cheese hold= new Cheese(\"/*\",5);\n";<br>
str += "end\n";<br>
<br>
<br>
final KnowledgeBuilder kbuilder =
KnowledgeBuilderFactory.newKnowledgeBuilder();<br>
kbuilder.add(ResourceFactory.newByteArrayResource(str.getBytes()),
ResourceType.DRL);<br>
StringBuffer stringBuffer = new StringBuffer();<br>
for (KnowledgeBuilderError e : kbuilder.getErrors()) {<br>
stringBuffer.append(e.toString());<br>
}<br>
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>