[ww-bugs] Bug 4095: New: Strict inequalities not parsed correctly without surrounding space

bugzilla-daemon at webwork.maa.org bugzilla-daemon at webwork.maa.org
Sun Mar 11 22:21:17 EDT 2018


http://bugs.webwork.maa.org/show_bug.cgi?id=4095

           Summary: Strict inequalities not parsed correctly without
                    surrounding space
           Product: PG
           Version: 2.7
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: MathObjects
        AssignedTo: dpvc at union.edu
        ReportedBy: pascal.buenzli at qut.edu.au
        Web browser ---
           version:


When parsing inequalities in answers, if strict inequalities are not surrounded
by spaces then WeBWorks fails at interpreting the inequality properly. This
does not happen always. E.g.

"1<x" => WeBWork reports "Answer Preview" to be "1" and it replaces "Entered"
by "1" too.

However, the following work fine:
"1<=x"
"x>1"
"1 < x"

My uni uses a relatively old version of WeBWork (2.7), I am unable to test
whether this has been fixed meanwhile, please let me know. 

This bug might be related to Bug 3691
http://bugs.webwork.maa.org/show_bug.cgi?id=3691

Code to reproduce this:

---
Context("Inequalities")->variables->are(x=>"Real");

BEGIN_TEXT
Write an inequality for x larger than 1
Answer:  \{ ans_rule(20) \}
END_TEXT

$ans = Compute("1 < x");
ANS($ans->cmp());   
---

-- 
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the webwork-bugs mailing list