Fix pathological FolderPath.is_equal() case, add unit test

This commit is contained in:
Michael Gratton 2019-01-14 18:03:47 +11:00 committed by Michael James Gratton
parent ddbe6e0b09
commit e1fd9daa83
2 changed files with 7 additions and 1 deletions

View file

@ -134,6 +134,12 @@ public class Geary.FolderPathTest : TestCase {
.equal_to(this.root.get_child("test2").get_child("test")),
"Disjoint parents"
);
assert_false(
this.root.get_child("test").equal_to(
this.root.get_child("").get_child("test")),
"Pathological case"
);
}
public void path_hash() throws GLib.Error {