PhilterPaper / Perl-PDF-Builder

Extended version of the popular PDF::API2 Perl-based PDF library for creating, reading, and modifying PDF documents
https://www.catskilltech.com/FreeSW/product/PDF%2DBuilder/title/PDF%3A%3ABuilder/freeSW_full
Other
6 stars 7 forks source link

Correct syntax of skips #132

Closed carygravel closed 3 years ago

carygravel commented 3 years ago

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.

PhilterPaper commented 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).

carygravel commented 3 years ago

"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.

PhilterPaper commented 3 years ago

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!