objects.test 993 Bytes
#!/usr/bin/env perl
require 5.008;
use warnings;
use strict;


chdir("objects") or die "chdir testdir failed: $!\n";

require TestDriver;


my $td = new TestDriver('objects');

my $n_tests = 4;

$td->runtest("integer type checks",
             {$td->COMMAND => "objects 0 minimal.pdf"},
             {$td->FILE => "test0.out", $td->EXIT_STATUS => 0},
             $td->NORMALIZE_NEWLINES);

$td->runtest("dictionary checks",
             {$td->COMMAND => "objects 1 -"},
             {$td->STRING => "test 1 done\n", $td->EXIT_STATUS => 0},
             $td->NORMALIZE_NEWLINES);

$td->runtest("global limits",
             {$td->COMMAND => "objects 2 -"},
             {$td->FILE => "test2.out", $td->EXIT_STATUS => 0},
             $td->NORMALIZE_NEWLINES);

$td->runtest("equivalent_to structural comparisons",
             {$td->COMMAND => "objects 3 -"},
             {$td->STRING => "test 3 done\n", $td->EXIT_STATUS => 0},
             $td->NORMALIZE_NEWLINES);

$td->report($n_tests);