Skip to content

Commit

Permalink
Merge branch 'gh-87' into XXX-appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
eserte committed Nov 5, 2023
2 parents db45fd2 + 0931211 commit c52bc59
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions t/X.t
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';
}

0 comments on commit c52bc59

Please sign in to comment.