Fix formatting

This commit is contained in:
Vincent Velociter
2026-05-17 14:27:38 +02:00
parent c23bc5b756
commit 767a7b1960
3 changed files with 31 additions and 37 deletions
+8 -2
View File
@@ -46,7 +46,10 @@ void main() {
expect(
Castles.standard.discardSide(Side.white).rooksPositions,
equals({
Side.white: const {CastlingSide.queen: null, CastlingSide.king: null},
Side.white: const {
CastlingSide.queen: null,
CastlingSide.king: null
},
Side.black: const {
CastlingSide.queen: Square.a8,
CastlingSide.king: Square.h8,
@@ -60,7 +63,10 @@ void main() {
CastlingSide.queen: Square.a1,
CastlingSide.king: Square.h1,
},
Side.black: const {CastlingSide.queen: null, CastlingSide.king: null},
Side.black: const {
CastlingSide.queen: null,
CastlingSide.king: null
},
}));
});
});
+16 -28
View File
@@ -108,26 +108,18 @@ void main() {
expect(
PgnComment.fromPgn(
'[%csl Ya1][%cal Ra1a1,Be1e2]commentary [%csl Gh8]'),
const PgnComment(
text: 'commentary',
shapes: [
PgnCommentShape(
color: CommentShapeColor.yellow,
from: Square.a1,
to: Square.a1),
PgnCommentShape(
color: CommentShapeColor.red,
from: Square.a1,
to: Square.a1),
PgnCommentShape(
color: CommentShapeColor.blue,
from: Square.e1,
to: Square.e2),
PgnCommentShape(
color: CommentShapeColor.green,
from: Square.h8,
to: Square.h8)
]));
const PgnComment(text: 'commentary', shapes: [
PgnCommentShape(
color: CommentShapeColor.yellow,
from: Square.a1,
to: Square.a1),
PgnCommentShape(
color: CommentShapeColor.red, from: Square.a1, to: Square.a1),
PgnCommentShape(
color: CommentShapeColor.blue, from: Square.e1, to: Square.e2),
PgnCommentShape(
color: CommentShapeColor.green, from: Square.h8, to: Square.h8)
]));
expect(
PgnComment.fromPgn('prefix [%eval .99,23]'),
@@ -144,14 +136,10 @@ void main() {
expect(
PgnComment.fromPgn('[%csl Ga1]foo'),
const PgnComment(
text: 'foo',
shapes: [
PgnCommentShape(
color: CommentShapeColor.green,
from: Square.a1,
to: Square.a1)
]));
const PgnComment(text: 'foo', shapes: [
PgnCommentShape(
color: CommentShapeColor.green, from: Square.a1, to: Square.a1)
]));
expect(
PgnComment.fromPgn(