1#!/usr/bin/perl 2# 3# Test Pod::Man behavior with various snippets. 4# 5# Copyright 2002, 2004, 2006, 2008-2009, 2012-2013, 2015-2016, 2018-2019 6# Russ Allbery <rra@cpan.org> 7# 8# This program is free software; you may redistribute it and/or modify it 9# under the same terms as Perl itself. 10# 11# SPDX-License-Identifier: GPL-1.0-or-later OR Artistic-1.0-Perl 12 13use 5.008; 14use strict; 15use warnings; 16 17use lib 't/lib'; 18 19use Test::More tests => 93; 20use Test::Podlators qw(test_snippet); 21 22# Load the module. 23BEGIN { 24 use_ok('Pod::Man'); 25} 26 27# List of snippets run by this test. 28my @snippets = qw( 29 agrave backslash-man-ref bullet-after-nonbullet bullets c-in-header 30 c-in-name dollar-magic error-die error-none error-normal 31 error-pod error-stderr error-stderr-opt eth fixed-font fixed-font-in-item 32 for-blocks hyphen-in-s item-fonts link-quoting link-to-url long-quote 33 lquote-and-quote lquote-rquote markup-in-name multiline-x name-guesswork 34 nested-lists newlines-in-c non-ascii not-bullet not-numbers nourls 35 paired-quotes periods quote-escaping rquote-none small-caps-magic 36 soft-hyphens trailing-space true-false uppercase-license x-whitespace 37 x-whitespace-entry 38); 39 40# Run all the tests. 41for my $snippet (@snippets) { 42 test_snippet('Pod::Man', "man/$snippet"); 43} 44