-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gh-87' into XXX-appveyor
- Loading branch information
Showing
1 changed file
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,12 @@ | ||
# Before `make install' is performed this script should be runnable with | ||
# `make test'. After `make install' it should work as `perl test.pl' | ||
use strict; | ||
use warnings; | ||
|
||
######################### We start with some black magic to print on failure. | ||
use Scalar::Util qw(looks_like_number); | ||
use Test::More qw(no_plan); | ||
|
||
# Change 1..1 below to 1..last_test_to_print . | ||
# (It may become useful if the test is moved to ./t subdirectory.) | ||
|
||
BEGIN { $| = 1; print "1..1\n"; } | ||
END {print "not ok 1\n" unless $loaded;} | ||
use Tk::X; | ||
$loaded = 1; | ||
print "ok 1\n"; | ||
|
||
######################### End of black magic. | ||
|
||
# Insert your test code below (better if it prints "ok 13" | ||
# (correspondingly "not ok 13") depending on the success of chunk 13 | ||
# of the test code): | ||
use_ok 'Tk::X'; | ||
|
||
if ($^O =~ m{^(MSWin32|linux|freebsd)$}) { | ||
ok looks_like_number Tk::X::None(), 'None is defined and a number'; | ||
ok looks_like_number Tk::X::ControlMask(), 'ControlMask is defined and a number'; | ||
} |