checkpoint
[sbp.git] / src / edu / berkeley / sbp / misc / RegressionTests.java
index b186b43..dc52644 100644 (file)
@@ -59,7 +59,7 @@ public class RegressionTests {
             System.err.println("expanding...");
 
             Tree t = r2.expand1();
-            TestCase[] expanded = (TestCase[])((Demo.Reducer)t.head()).reduce(t);
+            TestCase[] expanded = (TestCase[])((Demo.Reducer)t.head()).reduce(t.children());
             System.err.println("executing...");
             for(TestCase tc : expanded) {
                 tc.execute();
@@ -103,9 +103,9 @@ public class RegressionTests {
             });
         }
         public static class TestCaseMakerHelper extends MG {
-            public static @tag("grammaro") @raw Object grammaro(Tree t) {
+            public static @tag("grammaro") @raw Object grammaro(Iterable<Tree> t) {
                 System.out.println("working on " + t);
-                return Demo.make(t.child(0), "s", new ReflectiveMetaPlain());
+                return Demo.make(t.iterator().next(), "s", new ReflectiveMetaPlain());
             }
             //public static @tag("tca")           Object tca(Object[] o) throws IOException {
             //return new TestCase((String)o[0], (String[])o[1], (Union)o[2], false, false); }