Array answers not working for matrices outside of Matrix Context

Aperta
#1,330 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
perl
Ambito
backend

Direzione di ricerca

Start with the attached writeModel1.txt to reproduce the problem, then read the Fractions in Matrices section of Value/Matrix.pm, which the issue cites. Trace where the "isn't a matrix (it looks like a list of lists)" message is produced when a matrix answer is checked in a Fraction context. Done means a student-entered matrix of fractions is accepted as equal to the stored answer. The issue has been open for about a year with no linked fix, so confirm with maintainers before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The attached problem has two answer array fields at the end, one for a matrix, one for a column vector (but really it's a MathObject matrix). The answers are defined in Fraction context, and the matrix entries are all Fraction objects. Clicking to display the correct answers shows them correctly. This all seems to be correct according to the documentation: https://webwork.pcc.edu/webwork2/pod/lib/Value/Matrix.pm#Fractions-in-Matrices

However if a user tries to enter the correct answers, they are told "Your answer isn't a matrix (it looks like a list of lists)

writeModel1.txt

Lingua principale
Perl
Stelle
48
Fork
78
Merge medio
5g 13h
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwebwork/pg

Tutte le issue di openwebwork/pg

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.