From 4eefaf421bfeddf040d96a3dafb12e09673423d7 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Sun, 31 Jan 2010 08:32:52 +0100 Subject: Imported Upstream version 1.3.1 --- jstests/jni5.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 jstests/jni5.js (limited to 'jstests/jni5.js') diff --git a/jstests/jni5.js b/jstests/jni5.js new file mode 100644 index 0000000..c6e6b54 --- /dev/null +++ b/jstests/jni5.js @@ -0,0 +1,10 @@ + +t = db.jni5 +t.drop(); + +t.save( { a : 1 } ) +t.save( { a : 2 } ) + +assert.eq( 2 , t.find( { "$where" : "this.a" } ).count() , "A" ); +assert.eq( 0 , t.find( { "$where" : "this.b" } ).count() , "B" ); +assert.eq( 0 , t.find( { "$where" : "this.b > 45" } ).count() , "C" ); -- cgit v1.2.3