summaryrefslogtreecommitdiff
path: root/jstests/basic9.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/basic9.js')
-rw-r--r--jstests/basic9.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/jstests/basic9.js b/jstests/basic9.js
deleted file mode 100644
index 3395a41ed7b..00000000000
--- a/jstests/basic9.js
+++ /dev/null
@@ -1,25 +0,0 @@
-
-t = db.getCollection( "foo_basic9" );
-
-t.save( { "foo$bar" : 5 } );
-
-ok = false;
-
-try{
- t.save( { "$foo" : 5 } );
- ok = false;
-}
-catch ( e ){
- ok = true;
-}
-assert( ok , "key names aren't allowed to start with $ doesn't work" );
-
-try{
- t.save( { "x" : { "$foo" : 5 } } );
- ok = false;
-}
-catch ( e ){
- ok = true;
-}
-assert( ok , "embedded key names aren't allowed to start with $ doesn't work" );
-