Package aima.core.logic.propositional.parsing.ast

Examples of aima.core.logic.propositional.parsing.ast.Symbol


public class ListTest {

  @Test
  public void testListOfSymbolsClone() {
    ArrayList<Symbol> l = new ArrayList<Symbol>();
    l.add(new Symbol("A"));
    l.add(new Symbol("B"));
    l.add(new Symbol("C"));
    List<Symbol> l2 = new ArrayList<Symbol>(l);
    l2.remove(new Symbol("B"));
    Assert.assertEquals(3, l.size());
    Assert.assertEquals(2, l2.size());
  }
View Full Code Here

TOP

Related Classes of aima.core.logic.propositional.parsing.ast.Symbol

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.