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 ++++++++++++++++++++++++ test/read_directory/reference.xml | 1 + test/read_file/transformation.xsl | 2 +- test/read_xml_file/transformation.xsl | 2 +- 6 files changed, 96 insertions(+), 2 deletions(-) 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') 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 + ) + + + + + + + + + + + + diff --git a/test/read_directory/reference.xml b/test/read_directory/reference.xml index a7192ea..94e639e 100644 --- a/test/read_directory/reference.xml +++ b/test/read_directory/reference.xml @@ -2,6 +2,7 @@ common default_params +external_text_formatter read_directory read_file read_xml_file diff --git a/test/read_file/transformation.xsl b/test/read_file/transformation.xsl index e17734e..f773e0e 100644 --- a/test/read_file/transformation.xsl +++ b/test/read_file/transformation.xsl @@ -9,7 +9,7 @@ - + diff --git a/test/read_xml_file/transformation.xsl b/test/read_xml_file/transformation.xsl index e0a3794..2a6c5e5 100644 --- a/test/read_xml_file/transformation.xsl +++ b/test/read_xml_file/transformation.xsl @@ -9,7 +9,7 @@ - + -- cgit v1.2.3