void () { TreeNode root = createRoot(); TreeNode color = root.getChildAt(0); TreeNode digit = root.getChildAt(1); TreeNode greek = root.getChildAt(2); test(root, 1, createPathFinder("root"), root); test(root, 1, createPathFinder("toor")); // not found test(root, 2, createPathFinder("root", "color"), root, color); test(root, 2, createPathFinderWithoutRoot("color"), root, color); test(root, 4, createPathFinder("root", "roloc")); // not found test(root, 4, createPathFinderWithoutRoot("roloc")); // not found test(root, 3, createPathFinder("root", "color", "red"), root, color, color.getChildAt(0)); test(root, 3, createPathFinderWithoutRoot("color", "red"), root, color, color.getChildAt(0)); test(root, 7, createPathFinder("root", "color", "der")); // not found test(root, 7, createPathFinderWithoutRoot("color", "der")); // not found test(root, 4, createPathFinder("root", "color", "green"), root, color, color.getChildAt(1)); test(root, 4, createPathFinderWithoutRoot("color", "green"), root, color, color.getChildAt(1)); test(root, 7, createPathFinder("root", "color", "neerg")); // not found test(root, 7, createPathFinderWithoutRoot("color", "neerg")); // not found test(root, 5, createPathFinder("root", "color", "blue"), root, color, color.getChildAt(2)); test(root, 5, createPathFinderWithoutRoot("color", "blue"), root, color, color.getChildAt(2)); test(root, 7, createPathFinder("root", "color", "eulb")); // not found test(root, 7, createPathFinderWithoutRoot("color", "eulb")); // not found test(root, 3, createPathFinder("root", "digit"), root, digit); test(root, 3, createPathFinderWithoutRoot("digit"), root, digit); test(root, 4, createPathFinder("root", "tigid")); // not found test(root, 4, createPathFinderWithoutRoot("tigid")); // not found test(root, 4, createPathFinder("root", "digit", "one"), root, digit, digit.getChildAt(0)); test(root, 4, createPathFinderWithoutRoot("digit", "one"), root, digit, digit.getChildAt(0)); test(root, 13, createPathFinder("root", "digit", "eno")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "eno")); // not found test(root, 5, createPathFinder("root", "digit", "two"), root, digit, digit.getChildAt(1)); test(root, 5, createPathFinderWithoutRoot("digit", "two"), root, digit, digit.getChildAt(1)); test(root, 13, createPathFinder("root", "digit", "owt")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "owt")); // not found test(root, 6, createPathFinder("root", "digit", "three"), root, digit, digit.getChildAt(2)); test(root, 6, createPathFinderWithoutRoot("digit", "three"), root, digit, digit.getChildAt(2)); test(root, 13, createPathFinder("root", "digit", "eerht")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "eerht")); // not found test(root, 7, createPathFinder("root", "digit", "four"), root, digit, digit.getChildAt(3)); test(root, 7, createPathFinderWithoutRoot("digit", "four"), root, digit, digit.getChildAt(3)); test(root, 13, createPathFinder("root", "digit", "ruof")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "ruof")); // not found test(root, 8, createPathFinder("root", "digit", "five"), root, digit, digit.getChildAt(4)); test(root, 8, createPathFinderWithoutRoot("digit", "five"), root, digit, digit.getChildAt(4)); test(root, 13, createPathFinder("root", "digit", "evif")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "evif")); // not found test(root, 9, createPathFinder("root", "digit", "six"), root, digit, digit.getChildAt(5)); test(root, 9, createPathFinderWithoutRoot("digit", "six"), root, digit, digit.getChildAt(5)); test(root, 13, createPathFinder("root", "digit", "xis")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "xis")); // not found test(root, 10, createPathFinder("root", "digit", "seven"), root, digit, digit.getChildAt(6)); test(root, 10, createPathFinderWithoutRoot("digit", "seven"), root, digit, digit.getChildAt(6)); test(root, 13, createPathFinder("root", "digit", "neves")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "neves")); // not found test(root, 11, createPathFinder("root", "digit", "eight"), root, digit, digit.getChildAt(7)); test(root, 11, createPathFinderWithoutRoot("digit", "eight"), root, digit, digit.getChildAt(7)); test(root, 13, createPathFinder("root", "digit", "thgie")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "thgie")); // not found test(root, 12, createPathFinder("root", "digit", "nine"), root, digit, digit.getChildAt(8)); test(root, 12, createPathFinderWithoutRoot("digit", "nine"), root, digit, digit.getChildAt(8)); test(root, 13, createPathFinder("root", "digit", "enin")); // not found test(root, 13, createPathFinderWithoutRoot("digit", "enin")); // not found test(root, 4, createPathFinder("root", "greek"), root, greek); test(root, 4, createPathFinderWithoutRoot("greek"), root, greek); test(root, 4, createPathFinder("root", "keerg")); // not found test(root, 4, createPathFinderWithoutRoot("keerg")); // not found test(root, 5, createPathFinder("root", "greek", "alpha"), root, greek, greek.getChildAt(0)); test(root, 5, createPathFinderWithoutRoot("greek", "alpha"), root, greek, greek.getChildAt(0)); test(root, 9, createPathFinder("root", "greek", "ahpla")); // not found test(root, 9, createPathFinderWithoutRoot("greek", "ahpla")); // not found test(root, 6, createPathFinder("root", "greek", "beta"), root, greek, greek.getChildAt(1)); test(root, 6, createPathFinderWithoutRoot("greek", "beta"), root, greek, greek.getChildAt(1)); test(root, 9, createPathFinder("root", "greek", "ateb")); // not found test(root, 9, createPathFinderWithoutRoot("greek", "ateb")); // not found test(root, 7, createPathFinder("root", "greek", "gamma"), root, greek, greek.getChildAt(2)); test(root, 7, createPathFinderWithoutRoot("greek", "gamma"), root, greek, greek.getChildAt(2)); test(root, 9, createPathFinder("root", "greek", "ammag")); // not found test(root, 9, createPathFinderWithoutRoot("greek", "ammag")); // not found test(root, 8, createPathFinder("root", "greek", "delta"), root, greek, greek.getChildAt(3)); test(root, 8, createPathFinderWithoutRoot("greek", "delta"), root, greek, greek.getChildAt(3)); test(root, 9, createPathFinder("root", "greek", "atled")); // not found test(root, 9, createPathFinderWithoutRoot("greek", "atled")); // not found test(root, 9, createPathFinder("root", "greek", "epsilon"), root, greek, greek.getChildAt(4)); test(root, 9, createPathFinderWithoutRoot("greek", "epsilon"), root, greek, greek.getChildAt(4)); test(root, 9, createPathFinder("root", "greek", "nolispe")); // not found test(root, 9, createPathFinderWithoutRoot("greek", "nolispe")); // not found }