third_party/closure-compiler/src/test/com/google/javascript/jscomp/IntegrationTest.java
// isEquivalentTo returns false for alpha-equivalent nodes
isEquivalentTo returns false for alpha-equivalent nodes
isEquivalentTo returns false for alpha - equivalent nodes
@Test
  public void testIsEquivalentTo() {
    String[] input1 = {"function f(z) { return z; }"};
    String[] input2 = {"function f(y) { return y; }"};
    CompilerOptions options = new CompilerOptions();
    Node out1 = parse(input1, options, false);
    Node out2 = parse(input2, options, false);
    assertThat(out1.isEquivalentTo(out2)).isFalse();
  }
@ Test public void testIsEquivalentTo ( ) { String [ ] input1 = { "function f(z) { return z; }" } ; String [ ] input2 = { "function f(y) { return y; }" } ; CompilerOptions options = new CompilerOptions ( ) ; Node out1 = parse ( input1 , options , false ) ; Node out2 = parse ( input2 , options , false ) ; assertThat ( out1 . isEquivalentTo ( out2 ) ) . isFalse ( ) ; }
isEquivalentTo returns false for alpha-equivalent nodes
isEquivalentTo returns false for alpha - equivalent nodes