From: <jom...@us...> - 2013-11-14 10:44:26
|
Revision: 1759 http://sourceforge.net/p/jason/svn/1759 Author: jomifred Date: 2013-11-14 10:44:23 +0000 (Thu, 14 Nov 2013) Log Message: ----------- add test, update moise Modified Paths: -------------- trunk/applications/as-unit-test/src/jason/tests/TestAll.java trunk/lib/moise.jar trunk/release-notes.txt Added Paths: ----------- trunk/applications/as-unit-test/src/jason/tests/BugList1.java Added: trunk/applications/as-unit-test/src/jason/tests/BugList1.java =================================================================== --- trunk/applications/as-unit-test/src/jason/tests/BugList1.java (rev 0) +++ trunk/applications/as-unit-test/src/jason/tests/BugList1.java 2013-11-14 10:44:23 UTC (rev 1759) @@ -0,0 +1,31 @@ +package jason.tests; + +import jason.asunit.TestAgent; + +import org.junit.Before; +import org.junit.Test; + +public class BugList1 { + + TestAgent ag, oa, ob; + + // initialisation of the agent test + @Before + public void setupAg() { + ag = new TestAgent("a"); + + // defines the agent's AgentSpeak code + ag.parseAScode( + "+!start <- L=\"[a]\"; !g(L). "+ + "+!g([]) <- jason.asunit.print(no)."+ + "+!g(_) <- jason.asunit.print(yes)." + ); + } + + @Test(timeout=2000) + public void testProg() { + ag.addGoal("start"); + ag.assertPrint("yes", 10); + } + +} Modified: trunk/applications/as-unit-test/src/jason/tests/TestAll.java =================================================================== --- trunk/applications/as-unit-test/src/jason/tests/TestAll.java 2013-11-07 14:08:03 UTC (rev 1758) +++ trunk/applications/as-unit-test/src/jason/tests/TestAll.java 2013-11-14 10:44:23 UTC (rev 1759) @@ -14,6 +14,7 @@ BugIfGoalReturn.class, BugIfLength.class, BugUnamedVars.class, + BugList1.class, TestAddLogExprInBB.class, TestGoalSource.class, TestIA.class, Modified: trunk/lib/moise.jar =================================================================== (Binary files differ) Modified: trunk/release-notes.txt =================================================================== --- trunk/release-notes.txt 2013-11-07 14:08:03 UTC (rev 1758) +++ trunk/release-notes.txt 2013-11-14 10:44:23 UTC (rev 1759) @@ -1,10 +1,31 @@ +--------------------------- +version 1.4.0 + +revision XXX on SVN +--------------------------- + New features -- implementation of tail recursion optimisation for sub-goals. +- implementation of tail recursion optimisation (TRO) for sub-goals. It can be turned off in agent options, e.g.: agents: bob [tro=false]; +Changes in the API + +- the method apply was removed and replaced by capply that + clones and applies an unifier. Usually a code like + Term t = .... + t = t.clone(); + t.apply(u); + + can be replaced by + Term t = ..... + t = t.capply(u); + +NB. the TRO and capply have improved the performance of some application by 30%. + + --------------------------- version 1.3.10b This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |