Fix formatting

This commit is contained in:
Vincent Velociter
2026-05-18 11:09:27 +02:00
parent 83c1fd5e1b
commit cac95d7fe3
+5 -4
View File
@@ -195,17 +195,18 @@ void main() {
test('PgnComment implements hashCode/==', () {
const comment = '[%csl Ga1][%cal Ra1h1,Gb1b8] foo [%clk 3:25:45]';
expect(PgnComment.fromPgn(comment) == PgnComment.fromPgn(comment), true);
expect(
PgnComment.fromPgn(comment).hashCode,
expect(PgnComment.fromPgn(comment).hashCode,
PgnComment.fromPgn(comment).hashCode);
});
test('PgnComment == distinguishes shapes content', () {
const withShape = PgnComment(shapes: [
PgnCommentShape(color: CommentShapeColor.green, from: Square.a1, to: Square.a1),
PgnCommentShape(
color: CommentShapeColor.green, from: Square.a1, to: Square.a1),
]);
const withDifferentShape = PgnComment(shapes: [
PgnCommentShape(color: CommentShapeColor.red, from: Square.a1, to: Square.a1),
PgnCommentShape(
color: CommentShapeColor.red, from: Square.a1, to: Square.a1),
]);
const withoutShape = PgnComment();