04verb.t 922 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. ['simple', '@verb{. } . .}'],
  7. ['multiline', '@verb{@
  8. qdsqsddqsdsq
  9. @}after verb.'],
  10. ['nested', '@b{in b @verb{/ in verb { } /} in b end}'],
  11. ['comments', '@verb{a comment @c comment
  12. in a verb a}@c comment
  13. something @verb{, in verb,} @c other comment'],
  14. ['end_of_line', 'verb at end of line @verb{
  15. @{ in verb at end of line @c comment
  16. and now end}after end.'],
  17. ['verb_not_closed', '@verb{. } . '],
  18. ['verb_not_closed_with_char',
  19. '@verb{*
  20. In verb
  21. *'],
  22. ['verb_and_char_end_of_line_not_closed',
  23. 'verb, not closed @verb{*
  24. @bye
  25. '],
  26. ['verb_at_end_of_line_not_closed',
  27. 'verb at end of line @verb{
  28. '],
  29. );
  30. our ($arg_test_case, $arg_generate, $arg_debug);
  31. run_all ('verb', \@test_cases, $arg_test_case,
  32. $arg_generate, $arg_debug);