diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-09-17 10:08:22 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-09-17 10:08:22 -0400 |
commit | 690804eeb24e6a42cd1385820ed754d48edbca1c (patch) | |
tree | 05add517a22c4b4d8b804810d5c3aeefd1c3aaa1 /jstests/temp_cleanup.js | |
parent | ec4fbd6c657bc4974afecbded22a62caeb2d8d63 (diff) | |
download | mongo-690804eeb24e6a42cd1385820ed754d48edbca1c.tar.gz |
camelcase to _
Diffstat (limited to 'jstests/temp_cleanup.js')
-rw-r--r-- | jstests/temp_cleanup.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/jstests/temp_cleanup.js b/jstests/temp_cleanup.js new file mode 100644 index 00000000000..0a8a90945e4 --- /dev/null +++ b/jstests/temp_cleanup.js @@ -0,0 +1,16 @@ + +mydb = db.getSisterDB( "temp_cleanup_test" ) + +t = mydb.tempCleanup +t.drop() + +t.insert( { x : 1 } ) + +res = t.mapReduce( function(){ emit(1,1); } , function(){ return 1; } ); +printjson( res ); + +assert.eq( 1 , t.count() , "A1" ) +assert.eq( 1 , mydb[res.result].count() , "A2" ) + +mydb.dropDatabase() + |