From 4701b06c335a03259e575033b93c0658e0785316 Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Mon, 6 Dec 2010 13:15:16 +0100
Subject: [PATCH] example data tests w/doc

---
 tests/data/example.ccl | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 tests/data/example.ccl

diff --git a/tests/data/example.ccl b/tests/data/example.ccl
new file mode 100644
index 0000000..bdabf49
--- /dev/null
+++ b/tests/data/example.ccl
@@ -0,0 +1,15 @@
+  Data tests example
+Everything above the first '---' line (three dashes) is not a testcase. Lines of the form a=b ae checked for special name=value lines, such as tagset=NAME which sets the tagset or sentence=NAME which load a sentence.
+After the --- line comes the first test -- the operator string, followed by an empty line, followed by the expected string output. The operator string can be multiline. 
+If the first operator line is "position=XXX", position is parsed as an int and that is used as the current position in the sentence for this and any following tests. Default position is 0.
+Tests are separated from one another by a --- line.
+This test loads no sentence, but can change the position anyway. Tagset is kipi by default.
+tagset=ikipi
+---
+equal(["aaa"], "aaa")
+
+True
+---
+lower(["A"])
+
+["a"]
-- 
GitLab