added validate to client

This commit is contained in:
Eliot Horowitz
2009-02-02 09:36:01 -05:00
parent ff7573c65a
commit 165a4618ae
2 changed files with 35 additions and 8 deletions

View File

@@ -122,7 +122,10 @@ int main() {
//existing index
assert( conn.findOne(ns, Query("{name:'eliot'}").hint("{name:1}")).hasElement("name") );
}
// run validate
assert( conn.validate( ns ) );
}
cout << "client test finished!" << endl;
}