X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Fmisc%2FRegressionTests.java;h=3255630efb833b860ab414863cd047a8a22cf5d5;hp=02a5eee74210c041e81962b0ba8852dcd1d89a41;hb=87a031919defe819658fc5f0ddeb2476193151c4;hpb=683552e3855cac7417a6f456867a0c1dd96502a4 diff --git a/src/edu/berkeley/sbp/misc/RegressionTests.java b/src/edu/berkeley/sbp/misc/RegressionTests.java index 02a5eee..3255630 100644 --- a/src/edu/berkeley/sbp/misc/RegressionTests.java +++ b/src/edu/berkeley/sbp/misc/RegressionTests.java @@ -103,18 +103,18 @@ public class RegressionTests { }); } public static class TestCaseMakerHelper extends MG { - public static @tag("grammaro") @raw Object grammaro(Iterable t) { + public static @bind.as("grammaro") @raw Object grammaro(Iterable t) { System.out.println("working on " + t); return Demo.make(t.iterator().next(), "s", new ReflectiveMetaPlain()); } - //public static @tag("tca") Object tca(Object[] o) throws IOException { + //public static @bind.as("tca") Object tca(Object[] o) throws IOException { //return new TestCase((String)o[0], (String[])o[1], (Union)o[2], false, false); } - public static @tag("tca") Object tca(String input, String[] output, Union u) throws IOException { + public static @bind.as("tca") Object tca(String input, String[] output, Union u) throws IOException { return new TestCase(input, output, u, false, false); } - public static @tag("tcb") Object tca(String input, Union u) throws IOException { + public static @bind.as("tcb") Object tca(String input, Union u) throws IOException { return new TestCase(input, new String[0], u, false, false); } - public static @tag("ts") TestCase[] go(TestCase[] cases) { return cases; } - public static @tag("o") Object o(Object[] s) { return s; } + public static @bind.as("ts") TestCase[] go(TestCase[] cases) { return cases; } + public static @bind.as("o") Object o(Object[] s) { return s; } } }