From 281393a82ca1935d49c1cc2c19237b5ff158b2bf Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 21 Apr 2021 23:54:16 -0600 Subject: add negative test for empty role on inline phrase --- test/substitutions_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/substitutions_test.rb b/test/substitutions_test.rb index f097635a..67ee94dc 100644 --- a/test/substitutions_test.rb +++ b/test/substitutions_test.rb @@ -575,6 +575,12 @@ context 'Substitutions' do assert_equal 'alert', para.sub_quotes(para.source) end + # FIXME this is a negative test that should be updated once the problem is fixed + test 'should set role to empty if value before command is empty' do + para = block_from_string(%q{[,]#anonymous#}) + assert_equal 'anonymous', para.sub_quotes(para.source) + end + test 'inline passthrough with id and role set using shorthand' do %w(#idname.rolename .rolename#idname).each do |attrlist| para = block_from_string %([#{attrlist}]+pass+) -- cgit v1.2.3