[geany/geany] 72897b: Add a Txt2tags test case for titles
Colomban Wendling
git-noreply at xxxxx
Sat Nov 29 22:41:05 UTC 2014
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Tue, 19 Aug 2014 14:46:20 UTC
Commit: 72897bac7d5475170eeefab82060c1ffffe3cc0f
https://github.com/geany/geany/commit/72897bac7d5475170eeefab82060c1ffffe3cc0f
Log Message:
-----------
Add a Txt2tags test case for titles
This is simply extracted from the rules.t2t test, but with unique title
content as the tagmanager removes duplicate tags in tags files.
Modified Paths:
--------------
tests/ctags/Makefile.am
tests/ctags/titles.t2t
tests/ctags/titles.t2t.tags
Modified: tests/ctags/Makefile.am
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -248,6 +248,7 @@ test_sources = \
test.vhd \
test_input.rs \
test_input2.rs \
+ titles.t2t \
traffic_signal.v \
traits.php \
union.f \
Modified: tests/ctags/titles.t2t
40 lines changed, 40 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,40 @@
+
+% from rules.t2t, with unique title content as our output removed
+% duplicate tags (even with different scopes)
+
+
+%%% Syntax: Balanced equal signs (from 1 to 5)
+= First Title Level 1 =
+== First Title Level 2 ==
+=== First Title Level 3 ===
+==== First Title Level 4 ====
+===== First Title Level 5 =====
+%%% Label: Between brackets, alphanumeric [A-Za-z0-9_-]
+= Second Title Level 1 =[lab_el-1]
+== Second Title Level 2 ==[lab_el-2]
+=== Second Title Level 3 ===[lab_el-3]
+==== Second Title Level 4 ====[lab_el-4]
+===== Second Title Level 5 =====[lab_el-5]
+%%% Syntax: Spaces around and/or inside are allowed (and ignored)
+ ===Third Title Level 3===
+ === Fourth Title Level 3 ===
+ === Fifth Title Level 3 ===
+=== Sixth Title Level 3 ===
+=== Seventh Title Level 3 ===
+ === Eighth Title Level 3 ===[lab_el-9]
+%%% Invalid: Unbalanced equal signs
+ =First Not Title
+
+ ==Second Not Title=
+
+ ===Third Not Title====
+%%% Invalid: Level deeper than 5
+ ======First Not Title 6======
+
+=======First Not Title 7=======
+%%% Invalid: Space between title and label
+=Fourth Not Title= [label1]
+%%% Invalid: Space inside label
+=Fifth Not Title=[ label ]
+%%% Invalid: Strange chars inside label
+=Sixth Not Title=[la/bel]
Modified: tests/ctags/titles.t2t.tags
17 lines changed, 17 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,17 @@
+# format=tagmanager
+Eighth Title Level 3�64�Second Title Level 1Second Title Level 2�0
+Fifth Title Level 3�64�Second Title Level 1Second Title Level 2�0
+First Title Level 1�64�0
+First Title Level 2�64�First Title Level 1�0
+First Title Level 3�64�First Title Level 1First Title Level 2�0
+First Title Level 4�64�First Title Level 1First Title Level 2First Title Level 3�0
+First Title Level 5�64�First Title Level 1First Title Level 2First Title Level 3First Title Level 4�0
+Fourth Title Level 3�64�Second Title Level 1Second Title Level 2�0
+Second Title Level 1�64�0
+Second Title Level 2�64�Second Title Level 1�0
+Second Title Level 3�64�Second Title Level 1Second Title Level 2�0
+Second Title Level 4�64�Second Title Level 1Second Title Level 2Second Title Level 3�0
+Second Title Level 5�64�Second Title Level 1Second Title Level 2Second Title Level 3Second Title Level 4�0
+Seventh Title Level 3�64�Second Title Level 1Second Title Level 2�0
+Sixth Title Level 3�64�Second Title Level 1Second Title Level 2�0
+Third Title Level 3�64�Second Title Level 1Second Title Level 2�0
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list