mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat: add ability to compare objects
This commit is contained in:
parent
5dfedadfe6
commit
a14fe15a9c
45 changed files with 466 additions and 137 deletions
|
@ -101,5 +101,14 @@ void main() {
|
|||
'looked up by path', () {
|
||||
expect(() => tree['dir/dir_file.txt'].free(), returnsNormally);
|
||||
});
|
||||
|
||||
test('supports value comparison', () {
|
||||
expect(
|
||||
Tree.lookup(repo: repo, oid: repo['a8ae3dd']),
|
||||
equals(Tree.lookup(repo: repo, oid: repo['a8ae3dd'])),
|
||||
);
|
||||
|
||||
expect(tree[0], equals(tree[0]));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue