Fraction context and FormulaWithUnits
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with the reproduction in the issue: a PGML problem loading parserFormulaWithUnits.pl and contextFraction.pl with Context("Fraction"), where a correct answer of 1/2 min is rejected. Look at how FormulaWithUnits evaluates the fraction under the Fraction context, and compare with the Numeric context path the reporter mentions where reduceConstants is set to 0. Done means the fraction-form answer is accepted and a test covers it. The issue has been open about two years with no assignee or linked pull request, and it mentions a related issue, #1107, that may supersede it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Suppose a problem has an answer like 1/2 min. If you use parserNumberWithUnits.pl, it won't keep the fraction form, and that is important in a certain pedagogical context I am working with.
So I tried something like this, combining parserFormulaWithUnits.pl and contextFraction.pl.
DOCUMENT();
loadMacros(qw(PGstandard.pl PGML.pl parserFormulaWithUnits.pl contextFraction.pl));
Context("Fraction");
$answer = FormulaWithUnits("1/2 min");
BEGIN_PGML
Enter [|1/2 min|]*.
[_]{$answer}{16}
END_PGML
ENDDOCUMENT();
And submitting the correct answer, it is not accepted as correct. I think #1107 might make this moot, in that it could offer a better way to have a fraction with units. Also, it looks like I can accomplish what I want with FormulaWithUnits and Numeric context where I set reduceConstants to 0. But this did seem like a possible bug to report.
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openwebwork/pg
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
openwebwork/pg#1566 · 5 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
openwebwork/pg#1563 · 8 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 50/100
openwebwork/pg#1560 · 10 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
openwebwork/pg#1542 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
openwebwork/pg#1530 · 3 commenti ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di openwebwork/pg
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
openwebwork/webwork2#3295 ·
I maintainer di solito rispondono entro 4 giorni
-
nftables: "Display comment in rules list?" option has no effect, comments not shown in rules listAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
inverse-inc/packetfence#9707 ·
I maintainer di solito rispondono entro 1 giorno
-
Mailaddress phrase quotingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
RotherOSS/otobo#6457 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
The reply-to for the pro user signup emails should be the email of the user instrad of the contact@ emailForse già presa @sisodiaumang l’ha presa oggi. Aperta🏭 producer platform - spam
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
openfoodfacts/openfoodfacts-server#15447 ·
I maintainer di solito rispondono entro 1 giorno