Package test.list.types

Examples of test.list.types.Layout


    testAssert(sep.reverseSeparated().toTerm().isEqual(patternReversed), "separated reverse toTerm test");

    Module head = sep.getHead();

    testAssert(head.isEqual(factory.makeModule_Default("m1")), "separator from term test, head");
    Layout l1 = sep.getWsl();
    testAssert(l1.isEqual(factory.makeLayout_Default("l1")), "getSeparator test l1");
    Layout l2 = sep.getWsr();
    testAssert(l2.isEqual(factory.makeLayout_Default("l2")), "getSeparator test l2");
    Module second = sep.getTail().getHead();
    testAssert(second.isEqual(factory.makeModule_Default("m2")), "separator from term test, second element");
    Layout l3 = sep.getTail().getWsl();

    testAssert(l3.isEqual(factory.makeLayout_Default("l3")), "getSeparator test l3");
    Layout l4 = sep.getTail().getWsr();
    testAssert(l4.isEqual(factory.makeLayout_Default("l4")), "getSeparator test l4");

    testAssert(sep.getLength() == 4, "separated list length test");

    sep = factory.makeSeparated();
    testAssert(sep.toTerm().isEqual(factory.getPureFactory().makeList()), "empty separated list");
View Full Code Here


    Module m[] = new Module[6];

    for (int i = 0; i < 6; i++) {
      m[i] = factory.makeModule_Default("m" + i);
    }
    Layout l = factory.makeLayout_Default("l");

    Separated list[] = new Separated[7];

    list[0] = factory.makeSeparated();
    list[1] = factory.makeSeparated(m[0]);
View Full Code Here

  }

  private void testSeparatedAppend() {
    Separated empty = factory.makeSeparated();
    Module m = factory.makeModule_Default("m");
    Layout l = factory.makeLayout_Default(" ");
    Separated single = empty.append(l, l, m);

    testAssert(single.isEqual(factory.SeparatedFromString("[\"m\"]")), "test append on empty list");

    Separated twin = single.append(l, l, m);
View Full Code Here

TOP

Related Classes of test.list.types.Layout

Copyright © 2018 www.massapicom. 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.