static bool runPoemTest1(L test) { int n = 0; while (n < l(test) && !test.get(n).test) ++n; if (n == l(test)) ret true; // nothing more to test L input = subList(test, 0, n); L expected = subList(test, n); L out = predict(input); if (l(out) != l(expected)) ret false; for (int i = 0; i < l(out); i++) if (!out.get(i).eqTo(expected.get(i))) ret false; ret true; // finally - success! }