in reply to Re: Tests on Windows for Unix-only module
in thread Tests on Windows for Unix-only module
#!/usr/bin/perl -w
use strict;
use Test;
BEGIN { plan tests => 1 };
skip (0, sub { ok(1) } );
I thought that would produce a single "ok", but here's the actual output:
1..1 # Running under perl version 5.018002 for linux # Current time local: Tue Dec 30 00:51:18 2014 # Current time GMT: Tue Dec 30 05:51:18 2014 # Using Test.pm version 1.26 ok 1 ok 2Why are there two ok's?
If I change that first param to 1, so that it skips the test, it outputs one ok:
1..1 # Running under perl version 5.018002 for linux # Current time local: Tue Dec 30 00:54:55 2014 # Current time GMT: Tue Dec 30 05:54:55 2014 # Using Test.pm version 1.26 ok 1 # skip???
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Tests on Windows for Unix-only module
by Anonymous Monk on Dec 30, 2014 at 06:47 UTC | |
by Anonymous Monk on Dec 30, 2014 at 06:55 UTC | |
by mikosullivan (Novice) on Jan 01, 2015 at 00:04 UTC |