diff --git a/tests/CodeBlocksTest.php b/tests/CodeBlocksTest.php
new file mode 100644
index 0000000..a2aaad5
--- /dev/null
+++ b/tests/CodeBlocksTest.php
@@ -0,0 +1,46 @@
+
+
+ this is a code block
+
+
+ ";
+
+ [$source, $result] = createTest($source, $target);
+ $this->assertEquals($source, $result);
+ }
+
+ public function testLanguageAnnotationParsesCorrectly() : void {
+ $source = "
+```php
+ public function testLanguageAnnotationParsesCorrectly() : bool {
+ return true;
+ }
+
+```
+ ";
+ $target = "
+
+
+ public function testLanguageAnnotationParsesCorrectly() : bool {
+ return true;
+ }
+
+
+ ";
+
+ [$source, $result] = createTest($source, $target);
+ $this->assertEquals($source, $result);
+ }
+}
\ No newline at end of file
diff --git a/tests/GenericBlocksTest.php b/tests/GenericBlocksTest.php
new file mode 100644
index 0000000..43cd151
--- /dev/null
+++ b/tests/GenericBlocksTest.php
@@ -0,0 +1,47 @@
+
+ this is a paragraph
+
+ ";
+
+ [$source, $result] = createTest($source, $target);
+ $this->assertEquals($source, $result);
+ }
+
+ public function testBlockquotesParseCorrectly() : void {
+ $source = "
+> this is
+>
+> a blockquote
+
+";
+ $target = "
++ this is+ "; + + [$source, $result] = createTest($source, $target); + $this->assertEquals($source, $result); + } + + public function testHorizontalRuleParsesCorrectly() : void { + $source = " +--- + "; + $target = "
+ a blockquote
+
+ this text uses a simple reference + and does it twice +
+ "; + + [$source, $result] = createTest($source, $target); + $this->assertEquals($source, $result); + } +} \ No newline at end of file diff --git a/tests/TablesTest.php b/tests/TablesTest.php new file mode 100644 index 0000000..ec42784 --- /dev/null +++ b/tests/TablesTest.php @@ -0,0 +1,37 @@ + +