summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-06-25 23:24:34 -0400
committerEliot Horowitz <eliot@10gen.com>2011-06-25 23:24:44 -0400
commit3c8ea8795cc3afc1dc889919f7cefb7444cd222a (patch)
tree6b3bae7e1dbf1c96f92956f45550fcdbbabd2323 /dbtests
parent800d32536ba0a47518e53d855cbfc30ee0db265c (diff)
downloadmongo-3c8ea8795cc3afc1dc889919f7cefb7444cd222a.tar.gz
more lexNumCmp test
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/basictests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbtests/basictests.cpp b/dbtests/basictests.cpp
index 48df6ac9775..d529c19b476 100644
--- a/dbtests/basictests.cpp
+++ b/dbtests/basictests.cpp
@@ -408,6 +408,9 @@ namespace BasicTests {
ASSERT_EQUALS( -1 , lexNumCmp( "a0" , "a00" ) );
ASSERT_EQUALS( 0 , lexNumCmp( "a.0" , "a.00" ) );
+ ASSERT_EQUALS( -1 , lexNumCmp( "a.b.c.d0" , "a.b.c.d00" ) );
+ ASSERT_EQUALS( 1 , lexNumCmp( "a.b.c.0.y" , "a.b.c.00.x" ) );
+
}
};