diff --git a/modules/study/src/test/CommentParserTest.scala b/modules/study/src/test/CommentParserTest.scala index cebfedf846cb3..3f640de3c1813 100644 --- a/modules/study/src/test/CommentParserTest.scala +++ b/modules/study/src/test/CommentParserTest.scala @@ -78,47 +78,50 @@ class CommentParserTest extends lila.common.LilaTest: assertEquals(C("Hello there [%clk 10:40:33.556] something else").clock, Some(Centis(3843356))) test("parse shapes: empty"): - assertEquals(C(""), C.ParsedComment(Shapes(Nil), None, "")) + assertEquals(C(""), C.ParsedComment(Shapes(Nil), None, None, "")) test("parse shapes: without"): - assertEquals(C("Hello there"), C.ParsedComment(Shapes(Nil), None, "Hello there")) + assertEquals(C("Hello there"), C.ParsedComment(Shapes(Nil), None, None, "Hello there")) test("parse shapes: at start"): - assertMatch(C("[%csl Gb4,Yd5,Rf6] Hello there")) { case C.ParsedComment(shapes, None, "Hello there") => - shapes.value.size == 3 + assertMatch(C("[%csl Gb4,Yd5,Rf6] Hello there")) { + case C.ParsedComment(shapes, None, None, "Hello there") => + shapes.value.size == 3 } test("parse shapes: at end"): - assertMatch(C("Hello there [%csl Gb4,Yd5,Rf6]")) { case C.ParsedComment(shapes, None, "Hello there") => - shapes.value.size == 3 + assertMatch(C("Hello there [%csl Gb4,Yd5,Rf6]")) { + case C.ParsedComment(shapes, None, None, "Hello there") => + shapes.value.size == 3 } test("parse shapes: multiple"): assertMatch(C("Hello there [%csl Gb4,Yd5,Rf6][%cal Ge2e4,Ye2d4,Re2g4]")) { - case C.ParsedComment(shapes, None, "Hello there") => shapes.value.size == 6 + case C.ParsedComment(shapes, None, None, "Hello there") => shapes.value.size == 6 } test("parse shapes: new lines"): - assertMatch(C("Hello there [%csl\nGb4,Yd5,Rf6]")) { case C.ParsedComment(shapes, None, "Hello there") => - shapes.value.size == 3 + assertMatch(C("Hello there [%csl\nGb4,Yd5,Rf6]")) { + case C.ParsedComment(shapes, None, None, "Hello there") => + shapes.value.size == 3 } test("parse shapes: multiple, one new line"): assertMatch(C("Hello there [%csl\nGb4,Yd5,Rf6][%cal Ge2e4,Ye2d4,Re2g4]")) { - case C.ParsedComment(shapes, None, "Hello there") => shapes.value.size == 6 + case C.ParsedComment(shapes, None, None, "Hello there") => shapes.value.size == 6 } assertMatch(C("Hello there [%csl Gb4,Yd5,Rf6][%cal\nGe2e4,Ye2d4,Re2g4]")) { - case C.ParsedComment(shapes, None, "Hello there") => shapes.value.size == 6 + case C.ParsedComment(shapes, None, None, "Hello there") => shapes.value.size == 6 } test("parse shapes: multiple mess"): assertMatch(C("Hello there [%csl \n\n Gb4,Yd5,Rf6][%cal\nGe2e4,Ye2d4,Re2g4]")) { - case C.ParsedComment(shapes, None, "Hello there") => shapes.value.size == 6 + case C.ParsedComment(shapes, None, None, "Hello there") => shapes.value.size == 6 } test("multiple shapes + clock"): assertMatch(C("Hello there [%clk 10:40:33][%csl \n\n Gb4,Yd5,Rf6][%cal\nGe2e4,Ye2d4,Re2g4]")) { - case C.ParsedComment(shapes, clock, "Hello there") => + case C.ParsedComment(shapes, clock, None, "Hello there") => shapes.value.size == 6 && clock == Some(Centis(3843300)) }