summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_parser_test.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-04-29 17:46:24 -0400
committerEliot Horowitz <eliot@10gen.com>2013-04-29 17:46:24 -0400
commitdab9c1a25454c06a5dd94eb093a0d2a64bf9d9d3 (patch)
tree238d3a9b627ae084e27519aa74e2c42114631f79 /src/mongo/db/matcher/expression_parser_test.cpp
parent1bba08742e836118267f4162a36cbbc222b445fd (diff)
downloadmongo-dab9c1a25454c06a5dd94eb093a0d2a64bf9d9d3.tar.gz
SERVER-6400 rename *Expression* to *MatchExpression* to avoid conflict
Diffstat (limited to 'src/mongo/db/matcher/expression_parser_test.cpp')
-rw-r--r--src/mongo/db/matcher/expression_parser_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/matcher/expression_parser_test.cpp b/src/mongo/db/matcher/expression_parser_test.cpp
index 92f5248a3bb..f7ee08f3da0 100644
--- a/src/mongo/db/matcher/expression_parser_test.cpp
+++ b/src/mongo/db/matcher/expression_parser_test.cpp
@@ -27,18 +27,18 @@
namespace mongo {
- TEST( ExpressionParserTest, SimpleEQ1 ) {
+ TEST( MatchExpressionParserTest, SimpleEQ1 ) {
BSONObj query = BSON( "x" << 2 );
- StatusWithExpression result = ExpressionParser::parse( query );
+ StatusWithMatchExpression result = MatchExpressionParser::parse( query );
ASSERT_TRUE( result.isOK() );
ASSERT( result.getValue()->matches( BSON( "x" << 2 ) ) );
ASSERT( !result.getValue()->matches( BSON( "x" << 3 ) ) );
}
- TEST( ExpressionParserTest, Multiple1 ) {
+ TEST( MatchExpressionParserTest, Multiple1 ) {
BSONObj query = BSON( "x" << 5 << "y" << BSON( "$gt" << 5 << "$lt" << 8 ) );
- StatusWithExpression result = ExpressionParser::parse( query );
+ StatusWithMatchExpression result = MatchExpressionParser::parse( query );
ASSERT_TRUE( result.isOK() );
ASSERT( result.getValue()->matches( BSON( "x" << 5 << "y" << 7 ) ) );