Author: rahul Date: Tue Jan 6 22:06:37 2009 New Revision: 732236 URL: http://svn.apache.org/viewvc?rev=732236&view=rev Log: Correct test document -- in an <assign>, the lvalue and rvalue must be coercible types.
Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/example-01.xml Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/example-01.xml URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/example-01.xml?rev=732236&r1=732235&r2=732236&view=diff ============================================================================== --- commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/example-01.xml (original) +++ commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/example-01.xml Tue Jan 6 22:06:37 2009 @@ -88,8 +88,7 @@ <onentry> <log expr='"Lion : " + Data(jungle,"animals/lion/name") + "," + Data(jungle,"animals/lion/age")' /> <log expr='"Tiger: " + Data(jungle,"animals/tiger/name") + "," + Data(jungle,"animals/tiger/age")' /> - <assign location='Data(jungle,"animals/lion/age")' expr='new Number(Data(jungle,"animals/lion/age")) + 3' /> - <assign location='Data(jungle,"animals/tiger/age")' expr='new Number(Data(jungle,"animals/lion/age")) + 4' /> + <assign location='Data(jungle,"animals/lion/age")' expr='Data(jungle,"animals/tiger/age")' /> <log expr='"Lion : " + Data(jungle,"animals/lion/name") + "," + Data(jungle,"animals/lion/age")' /> <log expr='"Tiger: " + Data(jungle,"animals/tiger/name") + "," + Data(jungle,"animals/tiger/age")' /> </onentry>