diff --git a/test-kit/src/test/scala/format/pgn/ErrorMessagesTest.scala b/test-kit/src/test/scala/format/pgn/ErrorMessagesTest.scala deleted file mode 100644 index 7e40febe8..000000000 --- a/test-kit/src/test/scala/format/pgn/ErrorMessagesTest.scala +++ /dev/null @@ -1,90 +0,0 @@ -package chess -package format.pgn - -import scala.language.implicitConversions - -class ErrorMessagesTest extends ChessSpecs: - - args(skipAll = true) - - val parser = Parser.full - - "Invalid move" should: - "fail" in: - val e = - """[abc "def"] - | - |1. e4 { hello world } Nc6 - |2. bla - |""".stripMargin - parser(e) must beRight - - "Null moves are not supported" should: - "fail" in: - val e = - """[abc "def"] - | - |1. e4 { hello world } -- - |2. c6 - |""".stripMargin - parser(e) must beRight - - "too many glyphs" should: - "fail" in: - val e = - """[abc "def"] - | - |1. e4 { hello world } c5???? - |2. c6 - |""".stripMargin - parser(e) must beLeft - - "invalid glyphs" should: - "fail" in: - val e = - """[abc "def"] - | - |1. e4 { hello world } c5??@@ - |2. c6 - |""".stripMargin - parser(e) must beRight - - "bad comment" should: - "fail" in: - val e = - """[abc "def"] - | - |1. e4 { hello world - |2. c6 - |""".stripMargin - parser(e) must beRight - - "invalid tags 1" should: - "failed" in: - val e = - """|[ab "cdef] - | - |1. e4 { hello world } c5?? - |2. c6 - |""".stripMargin - parser(e) must beRight - - "invalid tags 2" should: - "failed" in: - val e = - """|[ab "cdef"] [123] - | - |1. e4 { hello world } c5?? - |2. c6 - |""".stripMargin - parser(e) must beRight - - "invalid promotion" should: - "failed" in: - val e = - """|[abc "def"] - | - |1. e4 h8=L - |2. c6 - """.stripMargin - parser(e) must beRight