Fix pathological FolderPath.is_equal() case, add unit test
This commit is contained in:
parent
ddbe6e0b09
commit
e1fd9daa83
2 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue