File: 05_lexer_practical.t

package info (click to toggle)
libppi-perl 1.203-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,576 kB
  • ctags: 603
  • sloc: perl: 10,139; makefile: 43
file content (32 lines) | stat: -rw-r--r-- 594 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/perl

# Compare a large number of specific constructs
# with the expected Lexer dumps.

use strict;
use File::Spec::Functions ':ALL';
BEGIN {
	$| = 1;
	$PPI::XS_DISABLE = 1;
	$PPI::XS_DISABLE = 1; # Prevent warning
}
use PPI::Lexer;
use PPI::Dumper;





#####################################################################
# Prepare

use Test::More tests => 167;
use t::lib::PPI;

#####################################################################
# Code/Dump Testing
# ntests = 2 + 11 * nfiles

t::lib::PPI->run_testdir( catdir( 't', 'data', '05_lexer_practical' ) );

exit();