void () { // all folders precede plain files assertEquals("Folders should precede plain files", -1, compare("~/project/dir/subdir/A.java", "~/project/dir/B.java")); assertEquals("Folders should precede plain files", -1, compare("~/project/dir/A.java", "~/project/B.java")); assertEquals("Folders should precede plain files", 1, compare("~/project/B.java", "~/project/dir/subdir/A.java")); }