From de00fbb5944f623ba50d1a358b7b22e020ef3beb Mon Sep 17 00:00:00 2001 From: luukkainen Date: Thu, 19 Apr 2012 15:15:58 +0000 Subject: [PATCH] Comparator did not map root resources -> invalid results refs #3138 git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@24739 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/interop/test/GraphComparator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java b/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java index f7c4ea6..71fc67e 100644 --- a/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java +++ b/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java @@ -210,6 +210,8 @@ public class GraphComparator { comparator.setComparator(this); + comparableResources.map(r1, r2); + final Stack objectsLeft = new Stack(); final Stack objectsRight = new Stack(); objectsLeft.push(r1); @@ -342,7 +344,7 @@ public class GraphComparator { comparableResources.contains(leftS.getPredicate(), rightS.getPredicate())) { unreliableLeft.remove(leftS); unreliableRight.remove(rightS); - comparableStatements.map(leftS, rightS); + addComparable(leftS, rightS, false); } } } -- 2.47.1