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
@Test
public void testCompletionOrdering1()
{
DefaultCompletionProvider provider = new DefaultCompletionProvider();
final Completion c1 = new FunctionCompletion(provider, "add", "int");
final Completion c2 = new VariableCompletion(provider, "indx", "int");
final Completion c3 = new FunctionCompletion(provider, "Sub", "int");
Assert.assertTrue(c1.compareTo(c2) < 0);
Assert.assertTrue(c2.compareTo(c3) < 0);
// (c1 < c2) and (c2 < c3), then it is implied that (c1 < c3)
Assert.assertTrue(c1.compareTo(c3) < 0);
}
The text was updated successfully, but these errors were encountered:
Test case:
The text was updated successfully, but these errors were encountered: