1b39c5158Smillertuse strict; 2256a93a4Safresh1use warnings; 3*5486feefSafresh1use Test::More tests => 4; 4b39c5158Smillert 5256a93a4Safresh1BEGIN { 6256a93a4Safresh1 require FindBin; 7256a93a4Safresh1 unshift @INC, $FindBin::Bin . '/lib'; 8256a93a4Safresh1 require helpers; 9256a93a4Safresh1 helpers->import; 10256a93a4Safresh1} 11b39c5158Smillert#my $d; 12b39c5158Smillert#use Pod::Simple::Debug (3); 13b39c5158Smillert 14b39c5158Smillertuse Pod::Simple::DumpAsXML; 15b39c5158Smillertuse Pod::Simple::XMLOutStream; 16b39c5158Smillertprint "# Pod::Simple version $Pod::Simple::VERSION\n"; 17b39c5158Smillert 18b39c5158Smillertmy $x = 'Pod::Simple::XMLOutStream'; 19b39c5158Smillert 20b39c5158Smillertprint "##### Tests for '=item * Foo' tolerance via class $x\n"; 21b39c5158Smillert 22b39c5158Smillert$Pod::Simple::XMLOutStream::ATTR_PAD = ' '; 23b39c5158Smillert$Pod::Simple::XMLOutStream::SORT_ATTRS = 1; # for predictably testable output 24b39c5158Smillert 25b39c5158Smillert 26b39c5158Smillertprint "#\n# Tests for simple =item *'s\n"; 27b39c5158Smillertok( $x->_out("\n=over\n\n=item * Stuff\n\n=item * Bar I<baz>!\n\n=back\n\n"), 28b39c5158Smillert '<Document><over-bullet indent="4"><item-bullet>Stuff</item-bullet><item-bullet>Bar <I>baz</I>!</item-bullet></over-bullet></Document>' 29b39c5158Smillert); 30b39c5158Smillertok( $x->_out("\n=over\n\n=item * Stuff\n\n=cut\n\nStuff\n\n=item *\n\nBar I<baz>!\n\n=back\n\n"), 31b39c5158Smillert '<Document><over-bullet indent="4"><item-bullet>Stuff</item-bullet><item-bullet>Bar <I>baz</I>!</item-bullet></over-bullet></Document>' 32b39c5158Smillert); 33b39c5158Smillertok( $x->_out("\n=over 10\n\n=item * Stuff\n\n=cut\n\nStuff\n\n=item *\n\nBar I<baz>!\n\n=back\n\n"), 34b39c5158Smillert '<Document><over-bullet indent="10"><item-bullet>Stuff</item-bullet><item-bullet>Bar <I>baz</I>!</item-bullet></over-bullet></Document>' 35b39c5158Smillert); 36b39c5158Smillertok( $x->_out("\n=over\n\n=item * Stuff I<things\num> hoo!\n=cut\nStuff\n\n=item *\n\nBar I<baz>!\n\n=back"), 37b39c5158Smillert '<Document><over-bullet indent="4"><item-bullet>Stuff <I>things um</I> hoo!</item-bullet><item-bullet>Bar <I>baz</I>!</item-bullet></over-bullet></Document>' 38b39c5158Smillert); 39