Closed carygravel closed 3 years ago
Is my changed syntax not running for you? "skip" has 2 arguments: the message to be displayed and a boolean flag (1 to skip, 0 to not). It works when I run it here. 1 unless <bool>
is '1' if <bool>
is false (0), but I'm not sure if it's '0' or 'undef' (implicitly 0?) if <bool>
is true (1).
"skip" has 2 arguments: the message to be displayed and a boolean flag (1 to skip, 0 to not)
No. The second argument is the number of tests to skip.
And no, it doesn't run for me.
Well, if it doesn't run for you on your system, I guess it needs to be fixed. I'll pull your changes. It sure would be nice if this was documented somewhere!
I think you've misunderstood the syntax of
skip()
. It has to have a second argument with the number of tests to skip. If you don't include that, you'll confuse things.Look here for more details.