Skip to content

Type issue with matrix array and not filling in all answer blanks. #1406

@somiaj

Description

@somiaj

Consider the following example problem:

DOCUMENT();
loadMacros('PGstandard.pl', 'PGML.pl');
Context('Matrix');
$ans = Matrix([['x'], ['y'], ['z']]);
BEGIN_PGML
[`[$ans]=`] [_]*{$ans}
END_PGML
ENDDOCUMENT();

Enter in the answer for two of the three answer boxes, leaving one empty, such as [[x],[y],[]]. Checking the problem gives the following warning (I had to check the answer twice for the warning to appear in the editor):

Can't call method "type" on unblessed reference at [PG]/lib/Value/AnswerChecker.pm line 1904 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions