libeval_compiler: fix string comparison
This commit is contained in:
parent
5874373a0c
commit
d2ed27b500
|
@ -118,7 +118,7 @@ bool VALUE::EqualTo( const VALUE* b ) const
|
||||||
return WildCompareString( b->m_valueStr, m_valueStr, false );
|
return WildCompareString( b->m_valueStr, m_valueStr, false );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return m_valueStr.CmpNoCase( b->m_valueStr );
|
return !m_valueStr.CmpNoCase( b->m_valueStr );
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -116,7 +116,7 @@ static bool testEvalExpr( const wxString& expr, LIBEVAL::VALUE expectedResult,
|
||||||
if( ok )
|
if( ok )
|
||||||
{
|
{
|
||||||
result = *ucode.Run( &context );
|
result = *ucode.Run( &context );
|
||||||
ok = ( result == expectedResult );
|
ok = ( result.EqualTo( &expectedResult ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue