http://www.perlmonks.org?node_id=189955


in reply to Re: AI::Perlog Unification help
in thread AI::Perlog Unification help

Darn.

I just added the following line to the end of facts.t:

ok( $pg->gnarfle( qw/ foo bar baz /), '... this should still match +' ); ok( $pg->gnarfle( qw/ foo tac toe /), '... as should this.' );

The first one fails (as you said it would). I updated the number of tests and, for a lark, ran this against an older copy. Still fails. Bummer. Working on a fix now. Wish I knew how I missed that one.

Update: Quick fix, fortunately. I needed to test to see if I had an array ref there to ensure that I added to it rather than overwriting it. You can download the new code (with updated tests) here.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.