00_test_function_debug.t 263 B

1234567891011121314
  1. #!/usr/bin/env perl
  2. use Scrappy;
  3. use FindBin;
  4. use Test::More $ENV{TEST_LIVE} ?
  5. (tests => 3) : (skip_all => 'env var TEST_LIVE not set, live testing is not enabled');
  6. my $s = Scrappy->new;
  7. ok 1 == $s->debug;
  8. ok 0 == $s->debug(0);
  9. ok 1 == $s->debug(1);