tests: sav/test_markdown.res
authorJean Privat <jean@pryen.org>
Fri, 16 Aug 2013 08:40:26 +0000 (04:40 -0400)
committerJean Privat <jean@pryen.org>
Fri, 16 Aug 2013 08:40:26 +0000 (04:40 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/sav/test_doc.res [new file with mode: 0644]
tests/sav/test_markdown.res [new file with mode: 0644]
tests/sav/test_markdown_args1.res [new file with mode: 0644]
tests/test_doc.nit [new file with mode: 0644]
tests/test_markdown.args [new file with mode: 0644]

diff --git a/tests/sav/test_doc.res b/tests/sav/test_doc.res
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/sav/test_markdown.res b/tests/sav/test_markdown.res
new file mode 100644 (file)
index 0000000..9ea2233
--- /dev/null
@@ -0,0 +1,14 @@
+usage: test_markdown [options] file.nit...
+  -W, --warn              Show warnings
+  -q, --quiet             Do not show warnings
+  --stop-on-first-error   Stop on first error
+  --no-color              Do not use color to display errors and warnings
+  --log                   Generate various log files
+  --log-dir               Directory where to generate log files
+  -h, -?, --help          Show Help (This screen)
+  --version               Show version and exit
+  -v, --verbose           Verbose
+  -I, --path              Set include path for loaders (may be used more than once)
+  --only-parse            Only proceed to parse step of loaders
+  --only-metamodel        Stop after meta-model processing
+  --full                  Process also imported modules
diff --git a/tests/sav/test_markdown_args1.res b/tests/sav/test_markdown_args1.res
new file mode 100644 (file)
index 0000000..da9e001
--- /dev/null
@@ -0,0 +1,29 @@
+<html>
+<head>
+<meta charset="utf-8">
+<style type="text/css">
+code {margin: 0 2px;
+padding: 0px 5px;
+border: 1px solid #ddd;
+background-color: #f8f8f8;
+border-radius: 3px;}
+pre {
+background-color: #f8f8f8;
+border: 1px solid #ddd;
+font-size: 13px;
+line-height: 19px;
+overflow: auto;
+padding: 6px 6px;
+border-radius: 3px;
+}
+</style>
+</head><body>
+<a id='test_doc'></a><h1>module test_doc</h1><a id='test_doc::A'></a><h2>class test_doc#A</h2><div class="nitdoc"><p class="synopsys">Synopsys</p><p>Paragraph
+same paragraph</p><p>Other paragraph with <code>code</code></p><ul><li>bullet</li><li>other buller</li><li>last
+but long
+bullet</li></ul><pre> some
+ block
+</pre><p>a first example</p><pre> assert 1 + 1 == 2
+</pre><p>and a last example to illustrate the <code>to_s</code> method on <code>A</code>.</p><pre> var a = new A
+ assert a.to_s == &quot;A&quot;
+</pre></div></body></html>
diff --git a/tests/test_doc.nit b/tests/test_doc.nit
new file mode 100644 (file)
index 0000000..2181e72
--- /dev/null
@@ -0,0 +1,40 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Synopsys
+# Paragraph
+# same paragraph
+#
+# Other paragraph with `code`
+#
+# * bullet
+# * other buller
+# * last
+#   but long
+#   bullet
+#
+#     some
+#     block
+#
+# a first example
+#
+#     assert 1 + 1 == 2
+#
+# and a last example to illustrate the `to_s` method on `A`.
+#
+#     var a = new A
+#     assert a.to_s == "A"
+class A
+       redef fun to_s do return "A"
+end
diff --git a/tests/test_markdown.args b/tests/test_markdown.args
new file mode 100644 (file)
index 0000000..79d2034
--- /dev/null
@@ -0,0 +1 @@
+test_doc.nit