0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

2 more tests MINOR

This commit is contained in:
Eliot Horowitz 2009-10-07 09:15:30 -04:00
parent a301303c98
commit bbc42224b2

View File

@ -999,6 +999,8 @@ namespace JsobjTests {
ASSERT_EQUALS( fromjson( "{ 'x' : 5.2 }" ).objsize() , 16 );
ASSERT_EQUALS( fromjson( "{ 'x' : 'eliot' }" ).objsize() , 18 );
ASSERT_EQUALS( fromjson( "{ 'x' : 5.2 , 'y' : 'truth' , 'z' : 1.1 }" ).objsize() , 40 );
ASSERT_EQUALS( fromjson( "{ 'x' : 5.2 , 'y' : { 'a' : 'eliot' , b : true } , 'z' : null }" ).objsize() , 44 );
ASSERT_EQUALS( fromjson( "{ 'x' : 5.2 , 'y' : [ 'a' , 'eliot' , 'b' , true ] , 'z' : null }" ).objsize() , 62 );
}
};