X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Funit%2FTestCHRCodeGenerator.java;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Funit%2FTestCHRCodeGenerator.java;h=9d9582e5ce064ad092fea63b25ee5d74b4d8b904;hp=2ec8ad5d6e128960f201e2b7fe65c8b86c19787d;hb=e12e3ad357853a07b24923b341c4732962a94623;hpb=21eae91e860f9f3cdb9cd0ee6fded24cdb8ca2f5 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/unit/TestCHRCodeGenerator.java b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/unit/TestCHRCodeGenerator.java index 2ec8ad5d6..9d9582e5c 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/unit/TestCHRCodeGenerator.java +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/unit/TestCHRCodeGenerator.java @@ -41,7 +41,7 @@ public class TestCHRCodeGenerator { CHRRuleset ruleset = new CHRRuleset(); CHRConstraint exampleFact = new CHRConstraint(Locations.NO_LOCATION, "ExampleFact", new Type[] { Types.INTEGER, Types.INTEGER }); - ruleset.constraints.add(exampleFact); + ruleset.addConstraint(exampleFact); System.out.println("=============================================================================================="); ruleset.initializeCodeGeneration(compilationContext);