feat: add ability to compare objects

This commit is contained in:
Aleksey Kulikov 2022-05-10 16:12:21 +03:00
parent 5dfedadfe6
commit a14fe15a9c
45 changed files with 466 additions and 137 deletions

View file

@ -166,5 +166,14 @@ void main() {
);
expect(() => worktree.free(), returnsNormally);
});
test('supports value comparison', () {
final worktree = Worktree.create(
repo: repo,
name: worktreeName,
path: worktreeDir.path,
);
expect(worktree, equals(Worktree.lookup(repo: repo, name: worktreeName)));
});
});
}