File: 02_api.t

package info (click to toggle)
libwx-perl 1%3A0.9909-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,912 kB
  • sloc: cpp: 9,728; perl: 8,182; ansic: 626; makefile: 41
file content (18 lines) | stat: -rwxr-xr-x 313 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl -w

use strict;
use Test::More tests => 2;
use Wx;
use Wx::DateTime;

# Test IsValid
my $valid = Wx::DateTime::Now();
my $invalid = Wx::DateTime->new();

ok($valid->IsValid, 'Testing Valid Object');
ok(!$invalid->IsValid, 'Testing Invalid Object');

# Local variables: #
# mode: cperl #
# End: #