From 6efa3385ae0fab5f7b6e3a113d1da18cfbed8591 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Mon, 26 May 2014 20:13:11 +0200 Subject: Added "external-text-formatter" test case * test case requires markdown.pl formatter to be available in "/usr/bin/" * updated README.md to mention "external-text-formatter" instead of "execute" * updated "read-directory" test case reference file * included library resolution test into "read-file" and "read-xml-file" test cases --- test/external_text_formatter/reference.xml | 33 +++++++++++++++++++++++++ test/external_text_formatter/test.md | 28 +++++++++++++++++++++ test/external_text_formatter/transformation.xsl | 32 ++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 test/external_text_formatter/reference.xml create mode 100644 test/external_text_formatter/test.md create mode 100644 test/external_text_formatter/transformation.xsl (limited to 'test/external_text_formatter') diff --git a/test/external_text_formatter/reference.xml b/test/external_text_formatter/reference.xml new file mode 100644 index 0000000..a98b3d8 --- /dev/null +++ b/test/external_text_formatter/reference.xml @@ -0,0 +1,33 @@ + + +

Markdown Test

+

+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

+
+

Duis aute irure dolor in reprehenderit in voluptate +velit esse cillum dolore eu fugiat nulla pariatur.

+
+

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ +

Test Test Test

+
+template <
+    typename Target,
+    std::size_t Index = 0,
+    typename Current  = std::tuple<>,
+    enable_if<Index == std::tuple_size<Target>::value> = 0
+>
+inline Target construct(
+    const xalan::XPathExecutionContext::XObjectArgVectorType&,
+    Current&& current
+) {
+    return current;
+}
+
+
+
diff --git a/test/external_text_formatter/test.md b/test/external_text_formatter/test.md new file mode 100644 index 0000000..9402e4f --- /dev/null +++ b/test/external_text_formatter/test.md @@ -0,0 +1,28 @@ +# Markdown Test + +__Lorem ipsum__ dolor sit amet, _consectetur_ adipisicing elit, sed do `eiusmod` tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + +> Duis aute irure dolor in reprehenderit in voluptate +> velit esse cillum dolore eu fugiat nulla pariatur. + +Excepteur sint **occaecat** cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +* Test 1 +* Test 2 +* Test 3 +* Test 4 + +Test Test Test + + template < + typename Target, + std::size_t Index = 0, + typename Current = std::tuple<>, + enable_if::value> = 0 + > + inline Target construct( + const xalan::XPathExecutionContext::XObjectArgVectorType&, + Current&& current + ) { + return current; + } diff --git a/test/external_text_formatter/transformation.xsl b/test/external_text_formatter/transformation.xsl new file mode 100644 index 0000000..00fe3b3 --- /dev/null +++ b/test/external_text_formatter/transformation.xsl @@ -0,0 +1,32 @@ + + + + + + + + + + InputXSLT:external-text-formatter( + '/usr/bin/markdown', + $source + ) + + + + + + + + + + + + -- cgit v1.2.3