[jboss-svn-commits] JBL Code SVN: r12168 - labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun May 27 20:43:58 EDT 2007
Author: michael.neale at jboss.com
Date: 2007-05-27 20:43:58 -0400 (Sun, 27 May 2007)
New Revision: 12168
Modified:
labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_mvel.drl
Log:
added example of optional ";" back in
Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_mvel.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_mvel.drl 2007-05-28 00:27:31 UTC (rev 12167)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_mvel.drl 2007-05-28 00:43:58 UTC (rev 12168)
@@ -10,8 +10,11 @@
$c : Cheese(type == "stilton", price == (new Integer( 5 ) + 5 ), eval(price == (new Integer( 5 ) + 5 ) ) )
eval( $c.price == 10 && list == empty)
then
- a = new java.math.BigInteger( "10" );
- b = new java.math.BigInteger( "10" );
- c = a + b; //look ma, optional ';' - ooh ahh....
- list.add( c + $c.price);
+ #we have optional ";"
+ a = new java.math.BigInteger( "10" )
+ b = new java.math.BigInteger( "10" )
+
+ #use ";" to seperate on the one line
+ c = a + b; list.add( c + $c.price)
+
end
\ No newline at end of file
More information about the jboss-svn-commits
mailing list