Skip to content

Commit b423291

Browse files
committed
extending X.t
Test for two constans from this module. This is done in preparation for fixing #87.
1 parent 6ffb9ab commit b423291

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

t/X.t

+8-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
# Before `make install' is performed this script should be runnable with
2-
# `make test'. After `make install' it should work as `perl test.pl'
1+
use strict;
2+
use warnings;
3+
use Scalar::Util qw(looks_like_number);
34

4-
######################### We start with some black magic to print on failure.
5+
use Test::More;
6+
plan tests => 2;
57

6-
# Change 1..1 below to 1..last_test_to_print .
7-
# (It may become useful if the test is moved to ./t subdirectory.)
8-
9-
BEGIN { $| = 1; print "1..1\n"; }
10-
END {print "not ok 1\n" unless $loaded;}
118
use Tk::X;
12-
$loaded = 1;
13-
print "ok 1\n";
14-
15-
######################### End of black magic.
16-
17-
# Insert your test code below (better if it prints "ok 13"
18-
# (correspondingly "not ok 13") depending on the success of chunk 13
19-
# of the test code):
9+
use Tk::X qw(None ControlMask);
2010

11+
ok looks_like_number(None), "None looks like a number (it's @{[ None ]})";
12+
ok looks_like_number(ControlMask), "ControlMask looks like a number (it's @{[ ControlMask ]})";

0 commit comments

Comments
 (0)