summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-08-20 16:50:23 -0400
committerEliot Horowitz <eliot@10gen.com>2009-08-20 16:50:23 -0400
commitafae0919bbf43392c00a06a6c7c03bee4e1b7813 (patch)
tree0f7855964fe7c229943b0b32521c4432c3b67feb
parent48f47865da8ab436ae1a6f2c10fdf7350085b216 (diff)
downloadmongo-afae0919bbf43392c00a06a6c7c03bee4e1b7813.tar.gz
test from before that works
-rw-r--r--jstests/fm2.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/fm2.js b/jstests/fm2.js
new file mode 100644
index 00000000000..bee89300db3
--- /dev/null
+++ b/jstests/fm2.js
@@ -0,0 +1,9 @@
+
+t = db.fm2
+t.drop();
+
+t.insert( { "one" : { "two" : {"three":"four"} } } );
+
+x = t.find({},{"one.two":1})[0]
+assert.eq( 1 , x.one.keySet().length , "ks l 1" );
+