Package com.google.test.metric.method.Stack2Turing

Examples of com.google.test.metric.method.Stack2Turing.VariableCompactor.compact()


  @SuppressWarnings("unchecked")
  public void testCompactionOfPrimitiveConstants() throws Exception {
    VariableCompactor compactor = new VariableCompactor();
    Constant c1 = new Constant("a", JavaType.INT);
    Constant c2 = new Constant("a", JavaType.INT);
    assertEquals(vv(v(c1)), compactor.compact(vv(v(c1), v(c2))));
  }

  @SuppressWarnings("unchecked")
  public void testNonCompactionOfNonPrimitiveConstants() throws Exception {
    VariableCompactor compactor = new VariableCompactor();
View Full Code Here


  @SuppressWarnings("unchecked")
  public void testNonCompactionOfNonPrimitiveConstants() throws Exception {
    VariableCompactor compactor = new VariableCompactor();
    Constant c1 = new Constant("a", JavaType.OBJECT);
    Constant c2 = new Constant("a", JavaType.fromClass(String.class));
    assertEquals(vv(v(c1), v(c2)), compactor.compact(vv(v(c1), v(c2))));
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.