Closed mmatera closed 2 years ago
Consider the input in the
In[1]:= "\\[Integral]" == "\\" <> "[Integral]"
In WMA, the result is
Out[1]= True
On the other hand, in Mathics the result is Out[1]= False
Out[1]= False
The reason is mathics-scanner parses the LHS as "\u222b", which is different to the RHS "\[Integral]"
"\u222b"
"\[Integral]"
I found it when I tried to write tests for https://github.com/Mathics3/mathics-core/pull/541
@mmatera what does StringLength["\\[Integral]"] evaluate to?
StringLength["\\[Integral]"]
In WMA:
In[1]:= StringLength["\\[Integral]"] Out[1]= 11
On the other hand,
In[2]:= StringLength["\[Integral]"] Out[2]= 1
Consider the input in the
In WMA, the result is
On the other hand, in Mathics the result is
Out[1]= False
The reason is mathics-scanner parses the LHS as
"\u222b"
, which is different to the RHS"\[Integral]"
I found it when I tried to write tests for https://github.com/Mathics3/mathics-core/pull/541