mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat: add ability to compare objects (#54)
This commit is contained in:
parent
5dfedadfe6
commit
bad40bdb61
45 changed files with 466 additions and 137 deletions
|
@ -134,5 +134,13 @@ void main() {
|
|||
final note = Note.lookup(repo: repo, annotatedOid: repo['821ed6e']);
|
||||
expect(note.toString(), contains('Note{'));
|
||||
});
|
||||
|
||||
test('supports value comparison', () {
|
||||
final oid = repo.head.target;
|
||||
expect(
|
||||
Note.lookup(repo: repo, annotatedOid: oid),
|
||||
equals(Note.lookup(repo: repo, annotatedOid: oid)),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue