summaryrefslogtreecommitdiff
path: root/dbtests/sharding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dbtests/sharding.cpp')
-rw-r--r--dbtests/sharding.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dbtests/sharding.cpp b/dbtests/sharding.cpp
index 2473366..19edd55 100644
--- a/dbtests/sharding.cpp
+++ b/dbtests/sharding.cpp
@@ -27,17 +27,17 @@ namespace ShardingTests {
namespace serverandquerytests {
class test1 {
public:
- void run(){
+ void run() {
ServerAndQuery a( "foo:1" , BSON( "a" << GT << 0 << LTE << 100 ) );
ServerAndQuery b( "foo:1" , BSON( "a" << GT << 200 << LTE << 1000 ) );
-
+
ASSERT( a < b );
ASSERT( ! ( b < a ) );
set<ServerAndQuery> s;
s.insert( a );
s.insert( b );
-
+
ASSERT_EQUALS( (unsigned int)2 , s.size() );
}
};
@@ -45,12 +45,12 @@ namespace ShardingTests {
class All : public Suite {
public:
- All() : Suite( "sharding" ){
+ All() : Suite( "sharding" ) {
}
- void setupTests(){
+ void setupTests() {
add< serverandquerytests::test1 >();
}
} myall;
-
+
}