summaryrefslogtreecommitdiffstats
path: root/perl/t/Scanner.t
blob: 99b8942de34e799d28ba4637279681df4b25fbd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl Scanner.t'

use warnings;
use strict;
use Test::More tests => 3;

#########################

BEGIN { use_ok('Barcode::ZBar') }

#########################

my $scanner = Barcode::ZBar::Scanner->new();
isa_ok($scanner, 'Barcode::ZBar::Scanner', 'scanner');

#########################

can_ok($scanner, qw(reset new_scan scan_y get_width get_color));

#########################

# FIXME more scanner tests