Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Added %extra_attributes for the test zci generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Getty committed Feb 26, 2012
1 parent a945139 commit cbb266c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/35-block.t
Expand Up @@ -14,11 +14,12 @@ use DDG::Request;
use DDG::ZeroClickInfo;

sub zci {
my ( $answer, $answer_type, $is_cached ) = @_;
my ( $answer, $answer_type, $is_cached, %extra_attributes ) = @_;
DDG::ZeroClickInfo->new(
answer => $answer,
answer_type => $answer_type,
is_cached => $is_cached ? 1 : 0,
%extra_attributes,
);
}

Expand Down

0 comments on commit cbb266c

Please sign in to comment.