File: 02_api.t

package info (click to toggle)
libwx-perl 1%3A0.9932-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 4,416 kB
  • sloc: cpp: 11,044; perl: 8,596; ansic: 711; makefile: 49
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: #