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

CAS text validation rules seem to have changed #268

Closed
timhunt opened this issue Feb 2, 2017 · 3 comments
Closed

CAS text validation rules seem to have changed #268

timhunt opened this issue Feb 2, 2017 · 3 comments

Comments

@timhunt
Copy link
Member

timhunt commented Feb 2, 2017

We have a question with the question text below: It used to work. Now, when you try to save the editing form, or preview the question, you get a validation error:

CASText failed validation. CAS commands not valid.
The characters @, $ and \ are not allowed in CAS input.

Any clues? (We are on latest master, a few commits ahead of 3.5.6). Thanks.


The triangle (ABC) has angle (@angle1@ = @vangle1@^\circ), angle (@angle2@ = @\vangle2@^\circ) and side (@Side2@) of length @vside2@, where the angles (A), (B) and (C) and sides (a), (b) and (c) are labelled as shown below.

A triangle with vertices capital A, capital B and capital C and sides lower case ay, lower case b and lower case c. The side opposite the vertex A is labelled lower case ay, the side opposite the vertex B is labelled lower case b and the side opposite the vertex C is labelled lower case c.

Find the length of side (@side1@). Give your answer as a decimal number to one decimal place.

(@side1@) = [[input:ans1]]

[[validation:ans1]]

@aharjula
Copy link
Member

aharjula commented Feb 3, 2017

@\vangle2@

@sangwinc
Copy link
Member

sangwinc commented Feb 7, 2017

Yes Tim, we stopped adding in ""s here:
57d36c3

I think this is a bug in your question perhaps? If so, can we close this?
Chris

@timhunt
Copy link
Member Author

timhunt commented Feb 10, 2017

Confirmed, these were buggy questions, and are now fixed at our end.

@timhunt timhunt closed this as completed Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants