Moved test jstest/[a-i].js -> jstests/core/ and made changes to comply with write command api
11 lines
174 B
JavaScript
11 lines
174 B
JavaScript
t = db.insert_long_index_key;
|
|
t.drop();
|
|
|
|
var s = new Array(2000).toString();
|
|
t.ensureIndex( { x : 1 } );
|
|
|
|
t.insert({ x: 1 });
|
|
t.insert({ x: s });
|
|
|
|
assert.eq( 1, t.count() );
|