From d6f45453254ea41acfbf6efb5655caac228799de Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Thu, 18 Aug 2022 16:31:21 +0200 Subject: [PATCH] added test for paragraph annotations --- tests/GenericBlocksTest.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/GenericBlocksTest.php b/tests/GenericBlocksTest.php index 43cd151..03114ba 100644 --- a/tests/GenericBlocksTest.php +++ b/tests/GenericBlocksTest.php @@ -44,4 +44,20 @@ this is a paragraph [$source, $result] = createTest($source, $target); $this->assertEquals($source, $result); } + + public function testParagraphAnnotations() : void { + $source = " + +this is an annotated paragraph {.classA, .classB} + + "; + $target = " +

+ this is an annotated paragraph {.classA, .classB} +

+ "; + + [$source, $result] = createTest($source, $target); + $this->assertEquals($source, $result); + } } \ No newline at end of file