You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a minimal example:
Note: you'll need to make the constructor ATypeElementWithType(Object o) public in order for this to work, just for the test case.
import scenelib.annotations.el.*;
import scenelib.type.*;
public class TestEquals {
public static void main (String[] args) throws Exception {
ATypeElementWithType e = new ATypeElementWithType("hello");
ATypeElementWithType a = e.clone();
a.setType( new ArrayType(new DeclaredType("hello")));
e.setType( new DeclaredType("hello"));
System.out.println(a.equals(e));
}
}
This will print true. This pull request fixes the issue: #167
The text was updated successfully, but these errors were encountered:
Could you make this into a unit test that can be run in an automated way?
I suggest adding a new directory under annotation-tools/scene-lib/test for unit tests like this.
Updated the pull request with proposed changes and some fixes. I couldn't reply earlier because I wasn't reveiving notifications for comments on issues.
Here's a minimal example:
Note: you'll need to make the constructor
ATypeElementWithType(Object o)
public in order for this to work, just for the test case.This will print
true
. This pull request fixes the issue: #167The text was updated successfully, but these errors were encountered: