File: whitespace.t

package info (click to toggle)
libcql-parser-perl 1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 324 kB
  • sloc: perl: 2,388; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;
use Test::More tests => 1;
use CQL::Parser;

eval {
    my $parser = CQL::Parser->new();
    my $node = $parser->parse( "title=dinosaur\n" );
};

if ( $@ ) { fail( "didn't ignore trailing whitespace" ); }
else { pass( "ignored trailing whitespace" ); }