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
|
@ -47,6 +47,7 @@ void main() {
|
|||
lessThan(5),
|
||||
);
|
||||
expect(sig.offset, isA<int>());
|
||||
expect(sig.sign, isNotEmpty);
|
||||
});
|
||||
|
||||
test('returns correct values', () {
|
||||
|
@ -77,5 +78,12 @@ void main() {
|
|||
test('returns string representation of Signature object', () {
|
||||
expect(signature.toString(), contains('Signature{'));
|
||||
});
|
||||
|
||||
test('supports value comparison', () {
|
||||
expect(
|
||||
Signature.create(name: name, email: email, time: time),
|
||||
equals(Signature.create(name: name, email: email, time: time)),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue