Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unescaped slashes in Checkit strings #561

Closed
siwelwerd opened this issue Jan 21, 2025 · 1 comment · Fixed by #567
Closed

Unescaped slashes in Checkit strings #561

siwelwerd opened this issue Jan 21, 2025 · 1 comment · Fixed by #567
Assignees
Labels
checkit Involves randomized exercise banks precalculus

Comments

@siwelwerd
Copy link
Contributor

Seeing this in the build output, I think this is all precalculus:

<string>:33: DeprecationWarning: invalid escape sequence '\i'
<string>:33: DeprecationWarning: invalid escape sequence '\i'
<string>:1[8](https://github.com/TeamBasedInquiryLearning/library/actions/runs/12891520081/job/35943648758#step:7:9): DeprecationWarning: invalid escape sequence '\l'
<string>:35: DeprecationWarning: invalid escape sequence '\c'
<string>:4[9](https://github.com/TeamBasedInquiryLearning/library/actions/runs/12891520081/job/35943648758#step:7:10): DeprecationWarning: invalid escape sequence '\l'
<string>:69: DeprecationWarning: invalid escape sequence '\c'

I believe the first one, for example, is caused by this line

"domain": f"(-\infty,{c})" if reflection=="horizontal" else f"({c},\infty)",

Note the unescaped \ in the string. Fix should be to escape the slashes.

@siwelwerd siwelwerd added checkit Involves randomized exercise banks precalculus labels Jan 21, 2025
@siwelwerd siwelwerd self-assigned this Jan 21, 2025
@siwelwerd
Copy link
Contributor Author

I think this is the \ls

"f": f"A({variable})=P\left(1+\dfrac{{r}}{{n}}\\right)^{{ n{variable} }}",

"f": f"A({variable})=A\left(1-r\\right)^{{ {variable} }}",

And these are teh \cs

"f": f"P({variable})=a\cdot b^{variable}",

"f": f"A({variable})=A\cdot \\left(\\frac{{1}}{{2}}\\right)^{{\\left( \\frac{{ {variable} }}{{h}} \\right)}}",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
checkit Involves randomized exercise banks precalculus
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant