some test refactoring

This commit is contained in:
Eliot Horowitz
2009-04-23 22:44:19 -04:00
parent 7596bf2e98
commit 9c88c32b04
4 changed files with 40 additions and 11 deletions

View File

@@ -114,12 +114,7 @@ namespace mongo {
};
void SMEngine::runTest(){
{
SMScope scope;
ScriptingFunction func = scope.createFunction( "x = 5" );
scope.invoke( func , BSONObj() );
assert( scope.getNumber( "x" ) == 5 );
}
// this is deprecated
}
}