diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-04-22 00:52:47 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-04-22 00:52:47 -0600 |
| commit | c00795f0f77faeb20456c5941342e96fdfcc85a5 (patch) | |
| tree | 3f8f9fa57732c2b4d7dd505b492cce3831b4eb3d /test/links_test.rb | |
| parent | 39fd55d089863a2b16f099f1275a593a10663080 (diff) | |
add additional test for xreflabel on anchor in DocBook output
Diffstat (limited to 'test/links_test.rb')
| -rw-r--r-- | test/links_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/links_test.rb b/test/links_test.rb index 2418df11..56ddd1e5 100644 --- a/test/links_test.rb +++ b/test/links_test.rb @@ -366,9 +366,10 @@ context 'Links' do end test 'assigns xreflabel value for anchor macro without reftext in DocBook output' do - input = 'anchor:foo[]' - result = convert_inline_string input, backend: :docbook - assert_equal '<anchor xml:id="foo" xreflabel="[foo]"/>', result + ['anchor:foo[]bar', '[[foo]]bar'].each do |input| + result = convert_inline_string input, backend: :docbook + assert_equal '<anchor xml:id="foo" xreflabel="[foo]"/>bar', result + end end test 'unescapes square bracket in reftext of anchor macro' do |
