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
|
@ -50,6 +50,7 @@ void main() {
|
|||
expect(object.type, GitObject.blob);
|
||||
expect(object.data, blobContent);
|
||||
expect(object.size, 13);
|
||||
expect(object, equals(repo.odb.read(repo[blobSha])));
|
||||
});
|
||||
|
||||
test('throws when trying to read object and error occurs', () {
|
||||
|
@ -115,5 +116,9 @@ void main() {
|
|||
final object = repo.odb.read(repo[blobSha]);
|
||||
expect(object.toString(), contains('OdbObject{'));
|
||||
});
|
||||
|
||||
test('supports value comparison', () {
|
||||
expect(repo.odb, equals(repo.odb));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue