albertogoffi / toradocu

Toradocu - automated generation of test oracles from Javadoc documentation
Other
42 stars 21 forks source link

Translation for "a new element" #131

Open mernst opened 7 years ago

mernst commented 7 years ago

The documentation for Commons Math's SparseGradient.multiply is

    /** Compute this × a.
     * @param a element to multiply
     * @return a new element representing this × a
     * @throws NullArgumentException if {@code a} is {@code null}.
     */

The translated postcondition is result.equals(a). This expression is type-correct, but the documentation says that the return value is fresh, so this should be translated into (!result.equals(this)) && (!result.equals(a)).