<commit_before><commit_msg>Test for verbatim warning<commit_after>#!/usr/bin/perl

use strict;
use warnings;
use 5.010;
use Pod::Cats;
use Test::More 'no_plan';
use Test::Warnings ':all';

my $pc = Pod::Cats->new();
chomp(my @lines = <DATA>);
like( 
    warning {; $pc->parse_lines(@lines) }, 
    qr/^Verbatim paragraph not terminated/,
    "Bad verbatim paragraph got warning"
);

__DATA__

This is normal text 1.

  This is verbatim.
This is normal text 5.
{'fraction_non_alphanumeric': 0.14596949891067537, 'fraction_numerical': 0.013071895424836602, 'mean_word_length': 4.287356321839081, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4192217', 'n_tokens_mistral': 177, 'n_tokens_neox': 160, 'n_words': 50}