diff options
Diffstat (limited to 'test/substitutions_test.rb')
| -rw-r--r-- | test/substitutions_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/substitutions_test.rb b/test/substitutions_test.rb index 176bd25f..b2fcd6ad 100644 --- a/test/substitutions_test.rb +++ b/test/substitutions_test.rb @@ -1624,6 +1624,14 @@ context 'Substitutions' do assert_equal '<strong><html5></strong>', result end + test 'inline pass macro supports incremental subs' do + para = block_from_string 'pass:n,-a[<{backend}>]' + result, passthroughs = para.extract_passthroughs para.source + assert_equal 1, passthroughs.size + result = para.restore_passthroughs result + assert_equal '<{backend}>', result + end + test 'should not recognize pass macro with invalid subsitution list' do [',', '42', 'a,'].each do |subs| para = block_from_string %(pass:#{subs}[foobar]) |
