Skip to content
Snippets Groups Projects
Commit d6c1df04 authored by ='s avatar =
Browse files

Added a simple test in CircularArrayFIFOQueue

parent 13b71b7e
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ public class CircularArrayComparatorTests extends TestsUtility {
test("test_a_aa");
test("test_equality_consistent_with_compare");
test("test_compare_transitive");
test("test_equals_doesnt_modify");
finish();
}
......@@ -110,4 +110,11 @@ public class CircularArrayComparatorTests extends TestsUtility {
l2.add("b");
return l1.equals(l2) && l1.compareTo(l2) == 0 ? 1 : 0;
}
public static int test_equals_doesnt_modify() {
CircularArrayFIFOQueue<String> l1 = init();
l1.add("a");
l1.equals(init());
return l1.size() == 1? 1 : 0;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment