Key match checkpoint

This commit is contained in:
Aaron
2009-03-02 16:03:48 -05:00
parent 67d39935dc
commit f5e4fe8cd6
5 changed files with 51 additions and 40 deletions

View File

@@ -114,6 +114,17 @@ namespace QueryTests {
}
};
class CountIndexedRegex : public Base {
public:
void run() {
insert( "{\"a\":\"b\"}" );
insert( "{\"a\":\"c\"}" );
BSONObj cmd = fromjson( "{\"query\":{\"a\":/^b/}}" );
string err;
ASSERT_EQUALS( 1, runCount( ns(), cmd, err ) );
}
};
class ClientBase {
public:
// NOTE: Not bothering to backup the old error record.
@@ -213,6 +224,7 @@ namespace QueryTests {
add< CountQuery >();
add< CountFields >();
add< CountQueryFields >();
add< CountIndexedRegex >();
add< ModId >();
add< ModNonmodMix >();
add< InvalidMod >();