Skip to content
Snippets Groups Projects
Commit bc25293a authored by Annie Mao's avatar Annie Mao
Browse files

Added null check to find() call to prevent NullPointerException when running tests.

parent 00f004f1
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,7 @@ public class AVLTreeTests extends TestsUtility {
// Check for accuracy
passed &= totalCount == (n * (n + 1)) / 2 * 5;
passed &= tree.size() == n;
passed &= tree.find("00851") != null;
passed &= tree.find("00851") == 4260;
return passed ? 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