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
|
@ -580,5 +580,15 @@ index e69de29..c217c63 100644
|
|||
expect(patch.delta.oldFile.toString(), contains('DiffFile{'));
|
||||
expect(stats.toString(), contains('DiffStats{'));
|
||||
});
|
||||
|
||||
test('supports value comparison', () {
|
||||
expect(Diff.parse(patchText), equals(Diff.parse(patchText)));
|
||||
|
||||
final diff = Diff.parse(patchText);
|
||||
expect(diff.deltas[0], equals(diff.deltas[0]));
|
||||
|
||||
final delta = diff.deltas[0];
|
||||
expect(delta.oldFile, equals(delta.oldFile));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue