in_effect.t
来自「source of perl for linux application,」· T 代码 · 共 43 行
T
43 行
#!/usr/bin/perl -w################################################################################ Test in_effect()use Test::More;use strict;BEGIN { $| = 1; chdir 't' if -d 't'; unshift @INC, '../lib'; plan tests => 9; }use bigint;use bignum;use bigrat;can_ok ('bigint', qw/in_effect/);can_ok ('bignum', qw/in_effect/);can_ok ('bigrat', qw/in_effect/);SKIP: { skip ('Need at least Perl v5.9.4', 3) if $] < "5.009005"; is (bigint::in_effect(), 1, 'bigint in effect'); is (bignum::in_effect(), 1, 'bignum in effect'); is (bigrat::in_effect(), 1, 'bigrat in effect'); }{ no bigint; no bignum; no bigrat; is (bigint::in_effect(), undef, 'bigint not in effect'); is (bignum::in_effect(), undef, 'bignum not in effect'); is (bigrat::in_effect(), undef, 'bigrat not in effect');}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?