28heading.t 786 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. use strict;
  2. use File::Spec;
  3. BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
  4. require 't/test_utils.pl';
  5. my @test_cases = (
  6. ['heading_in_copying',
  7. '@copying
  8. @heading in copying @@ @emph{heading}
  9. @cindex cindex copying
  10. @subheading second in copying @@ @emph{subheading}
  11. @end copying
  12. @node Top
  13. @insertcopying
  14. '],
  15. ['heading_in_quotation',
  16. '@quotation
  17. @heading in quotation @@ @emph{heading}
  18. @end quotation
  19. '],
  20. ['heading_in_example',
  21. '@example
  22. @heading in example @@ @emph{heading}
  23. @end example
  24. ']
  25. );
  26. our ($arg_test_case, $arg_generate, $arg_debug);
  27. foreach my $test (@test_cases) {
  28. $test->[2]->{'test_formats'} = ['plaintext', 'html'];
  29. }
  30. run_all ('heading', \@test_cases, $arg_test_case,
  31. $arg_generate, $arg_debug);