|
From: <tom...@us...> - 2008-04-01 23:35:05
|
Revision: 1189
http://jason.svn.sourceforge.net/jason/?rev=1189&view=rev
Author: tomklapiscak
Date: 2008-04-01 16:35:02 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Started work on new jasdl.test package. Far more comprehensive JasdlBeliefBase implemented (matches behaviour against Jason's default).
Bug fixes.
Agent configuration improvement.
Modified Paths:
--------------
trunk/applications/jasdl-owlapi/src/jasdl/test/JasdlBeliefBaseTest.java
Modified: trunk/applications/jasdl-owlapi/src/jasdl/test/JasdlBeliefBaseTest.java
===================================================================
--- trunk/applications/jasdl-owlapi/src/jasdl/test/JasdlBeliefBaseTest.java 2008-04-01 23:33:22 UTC (rev 1188)
+++ trunk/applications/jasdl-owlapi/src/jasdl/test/JasdlBeliefBaseTest.java 2008-04-01 23:35:02 UTC (rev 1189)
@@ -203,27 +203,7 @@
actual.add(bbit.next());
}
- Set<Literal> actuallyLessDifference = new HashSet<Literal>();
- actuallyLessDifference.addAll(expected);
- actuallyLessDifference.removeAll(actual);
- if(!actuallyLessDifference.isEmpty()){
- System.out.println("\n\nexpected > actual. Difference: "+actuallyLessDifference+"\n\n");
- }
-
- Set<Literal> actuallyMoreDifference = new HashSet<Literal>();
- actuallyMoreDifference.addAll(actual);
- actuallyMoreDifference.removeAll(expected);
- if(!actuallyMoreDifference.isEmpty()){
- System.out.println("\n\nexpected < actual. Difference: "+actuallyMoreDifference+"\n\n");
- }
-
- //System.out.println("Terminal state: "+actual);
-
assertEquals(expected, actual);
- //System.out.println("Terminal state consistent? "+);
-
-
-
}
@@ -278,15 +258,6 @@
//System.out.println("Adding: "+l);
assertEquals(testbb.add((Literal)l.clone()), bb.add((Literal)l.clone())); // cloning necessary since Jason's default bb.add affects l passed to it
}
-
- // TODO: error in Jason's BB below? Rejects additions even though annots changed!
- // might be because deffault bb.add affects literals?
- //l.addAnnot(new Atom("x"));
- //System.out.println("Adding: "+l);
- //assertEquals(testbb.add(l), bb.add(l));
- //l.addAnnot(new Atom("y"));
- //System.out.println("Adding: "+l);
- //assertEquals(testbb.add(l), bb.add(l));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|