pdl / Test-Proto

OO test script golf sugar
1 stars 1 forks source link

The SYNOPSIS doesn't work. #27

Open schwern opened 11 years ago

schwern commented 11 years ago

According to the SYNOPSIS, I can do this...

use Test::Proto;

pAr ->contains_only('', pHr, 
        "ArrayRef must contain only an empty string followed by a hashref")
    ->ok(["", {a=>'b'}]);

That doesn't work because Test::Proto doesn't export anything by default. Either the SYNOPSIS has to be changed or the export behavior does.

pdl commented 11 years ago

Oops! Well spotted. I'll fix this once I've figured out how to fix #23 and #28 .

pdl commented 10 years ago

Works now, but it would be nice to be able to write a test for this. Hmmm.