diff options
author | Aaron <aaron@10gen.com> | 2011-08-18 22:00:21 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-08-18 22:00:21 -0700 |
commit | 09670c72f6ebadd972bba779fb4a33ca52d18ae9 (patch) | |
tree | b906d31c2023fb57d7c6e218dbdbbcf112bcf744 /jstests/or3.js | |
parent | 68d95172a7e975156d6ffa4244b5a72ee01fa0d5 (diff) | |
download | mongo-09670c72f6ebadd972bba779fb4a33ca52d18ae9.tar.gz |
tests were getting messed up by array add on functions
Diffstat (limited to 'jstests/or3.js')
-rw-r--r-- | jstests/or3.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/or3.js b/jstests/or3.js index 1815402204b..97028beca9c 100644 --- a/jstests/or3.js +++ b/jstests/or3.js @@ -7,7 +7,7 @@ checkArrs = function( a, b, m ) { bStr = []; a.forEach( function( x ) { aStr.push( tojson( x ) ); } ); b.forEach( function( x ) { bStr.push( tojson( x ) ); } ); - for ( i in aStr ) { + for ( i = 0; i < aStr.length; ++i ) { assert( -1 != bStr.indexOf( aStr[ i ] ), m ); } } |