Examples of runTestInSameEvaluator()


Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

  public void testTopologicalStrategySeperately(){
    TestFramework tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
    assertTrue(tf.runTestInSameEvaluator("topological_once_bottom_up(rules5)(r2) == {<a(),ee()>,<a(),d()>,<d(),ee()>}"));
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
    assertTrue(tf.runTestInSameEvaluator("topological_once_top_down(rules5)(r2) == {<aa(),e()>,<aa(),d()>,<d(),e()>}"));
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

    assertTrue(tf.runTestInSameEvaluator("topological_once_bottom_up(rules5)(r2) == {<a(),ee()>,<a(),d()>,<d(),ee()>}"));
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
    assertTrue(tf.runTestInSameEvaluator("topological_once_top_down(rules5)(r2) == {<aa(),e()>,<aa(),d()>,<d(),e()>}"));
   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
    assertTrue(tf.runTestInSameEvaluator("topological_top_down(rules5)(r2) == {<aa(), dd()>, <aa(), ee()>, <dd(),ee()>}"));
   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
    assertTrue(tf.runTestInSameEvaluator("topological_bottom_up(rules5)(r2) == {<aa(), dd()>, <aa(), ee()>, <dd(),ee()>}"));
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
    assertTrue(tf.runTestInSameEvaluator("topological_innermost(rules6)(r2) == {<h(aa()), h(dd())>, <h(aa()), h(ee())>, <h(dd()),h(ee())>}"));
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

    assertTrue(tf.runTestInSameEvaluator("topological_bottom_up(rules5)(r2) == {<aa(), dd()>, <aa(), ee()>, <dd(),ee()>}"));
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
    assertTrue(tf.runTestInSameEvaluator("topological_innermost(rules6)(r2) == {<h(aa()), h(dd())>, <h(aa()), h(ee())>, <h(dd()),h(ee())>}"));
   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[A, A] r2 = {<a(), d()>, <a(), e()>, <d(), e()>};");
    assertTrue(tf.runTestInSameEvaluator("topological_outermost(rules6)(r2) == {<h(aa()), h(dd())>, <h(aa()), h(ee())>, <h(dd()),h(ee())>}"));
  }
 
  @Test @Ignore
  public void testNestedTopologicalStrategy(){
    prepare("import StrategyTests;");
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

  public void testNestedTopologicalStrategySeperately(){
    TestFramework tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[value, value] r3 = {<a(), d()>, <a(), e()>, <d(), e()>, <a(), {<a(), e()>}>};");
    assertTrue(tf.runTestInSameEvaluator("topological_once_bottom_up(rules5)(r3) == {<a(),ee()>,<a(),d()>,<d(),ee()>, <a(), {<a(), e()>}>}"));
   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[value, value] r3 = {<a(), d()>, <a(), e()>, <d(), e()>, <a(), {<a(), e()>}>};");
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[value, value] r3 = {<a(), d()>, <a(), e()>, <d(), e()>, <a(), {<a(), e()>}>};");
    assertTrue(tf.runTestInSameEvaluator("topological_once_top_down(rules5)(r3) == {<aa(),e()>,<aa(),d()>,<d(),e()>, <aa(), {<a(), e()>}>}"));
   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[value, value] r3 = {<a(), d()>, <a(), e()>, <d(), e()>, <a(), {<a(), e()>}>};");
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[value, value] r3 = {<a(), d()>, <a(), e()>, <d(), e()>, <a(), {<a(), e()>}>};");
    assertTrue(tf.runTestInSameEvaluator("topological_top_down(rules5)(r3) == {<aa(), dd()>, <aa(), ee()>, <dd(),ee()>, <aa(), {<aa(), ee()>}>}"));
   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[value, value] r3 = {<a(), d()>, <a(), e()>, <d(), e()>, <a(), {<a(), e()>}>};");
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.runTestInSameEvaluator()

   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[value, value] r3 = {<a(), d()>, <a(), e()>, <d(), e()>, <a(), {<a(), e()>}>};");
    assertTrue(tf.runTestInSameEvaluator("topological_bottom_up(rules5)(r3) == {<aa(), dd()>, <aa(), ee()>, <dd(),ee()>, <aa(), {<aa(), ee()>}>}"));
   
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import TopologicalStrategy;");
    tf.prepareMore("rel[value, value] r3 = {<a(), d()>, <a(), e()>, <d(), e()>, <a(), {<a(), e()>}>};");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.