Skip to content

Commit

Permalink
Item8592: Add tests for duplicate links, and <nop> escaped WikiWords
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@7261 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Apr 26, 2010
1 parent 66bd21e commit 217a09a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UnitTestContrib/test/unit/TOCTests.pm
Expand Up @@ -167,11 +167,14 @@ sub test_TOC_SpecialCharacters {
# The first value is the expected anchor.
# The second value is the heading.
my @comparisons = (
['A_1', '---+ 1', 'Numbered heading' ], # Numbered heading
['A_1', '---+ 1', 'Numbered heading' ],
['A_1_AN1', "---+ 1\n---+ 1", 'Duplicate heading' ],
['A_1_AN2', "---+ 1\n---+ 1\n---+ 1", 'Triplicate heading' ],
['test_361', '---+ test $1', 'Dollar sign'], # Dollar Sign
['test_40_41', '---+ test ()', 'Parenthesis'], # Parenthesis
['TEST_33_WikiWord', '---+ TEST ! WikiWord', 'WikiWord and !'], # Unescaped WikiWord
['TEST_WikiWord', '---+ TEST !WikiWord', 'Escaped WikiWord'], # Escaped WikiWord
['TEST_WikiWord', '---+ TEST <nop>WikiWord', '<nop> Escaped WikiWord'], # Escaped WikiWord
['TEST_WikiWord', '---+ TEST !WikiWord', '! Escaped WikiWord'], # Escaped WikiWord
['TEST_60', '---+ TEST <', 'Less-than'], # Less-than
['TEST_61', '---+ TEST >', 'Greater-than'], # Greater-than
['TEST_60_61', '---+ TEST <>'], # Less / greater than.
Expand Down

0 comments on commit 217a09a

Please sign in to comment.