mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 23:07:55 +02:00
- Added unit tests for comparison operators (except compare())
- Fixed Value::operator <= implementation (had the semantic of operator >=). Found when addigin unit tests for comparison operators.
This commit is contained in:
@@ -600,7 +600,7 @@ Value::operator <( const Value &other ) const
|
||||
bool
|
||||
Value::operator <=( const Value &other ) const
|
||||
{
|
||||
return !(other > *this);
|
||||
return !(other < *this);
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user