Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added test step identifiers.

  • Loading branch information...
commit 1866d3f2d0f273227e9b63d7d01db6901353ecda 1 parent bc77044
@sergi authored
Showing with 8 additions and 13 deletions.
  1. +6 −11 tests/DBCollectionTest.js
  2. +2 −2 tests/DBCursorTest.js
View
17 tests/DBCollectionTest.js
@@ -41,22 +41,17 @@ exports.testDropIndex = function() {
c.drop();
c.save( {"x": 1 });
- assert.isEqual( 1 , c.getIndexInfo().size() );
-
+ assert.isEqual( 1 , c.getIndexInfo().size(), "11");
c.ensureIndex( {"x": 1} );
- assert.isEqual( 2 , c.getIndexInfo().size() );
-
+ assert.isEqual( 2 , c.getIndexInfo().size(), "12");
c.dropIndexes();
- assert.isEqual( 1 , c.getIndexInfo().size() );
-
+ assert.isEqual( 1 , c.getIndexInfo().size(), "13");
c.ensureIndex( {"x": 1} );
- assert.isEqual( 2 , c.getIndexInfo().size() );
-
+ assert.isEqual( 2 , c.getIndexInfo().size(), "14");
c.ensureIndex( {"y": 1} );
- assert.isEqual( 3 , c.getIndexInfo().size() );
-
+ assert.isEqual( 3 , c.getIndexInfo().size(), "15");
c.dropIndex( {"x": 1} );
- assert.isEqual( 2 , c.getIndexInfo().size() );
+ assert.isEqual( 2 , c.getIndexInfo().size(), "16");
}
View
4 tests/DBCursorTest.js
@@ -59,8 +59,8 @@ exports.testBig = function() {
assert.isEqual( numToInsert , c.find().batchSize(2).itcount(), "11" );
assert.isEqual( numToInsert , c.find().batchSize(1).itcount(), "12" );
- assert.isEqual( numToInsert , _count( c.find( null , null , 0 , 5 ) ) );
- assert.isEqual( 5 , _count( c.find( null , null , 0 , -5 ) ) );
+ assert.isEqual( numToInsert , _count( c.find( null , null , 0 , 5 ) ), "13" );
+ assert.isEqual( 5 , _count( c.find( null , null , 0 , -5 ) ), "14" );
}
var _count = function(i) {
Please sign in to comment.
Something went wrong with that request. Please try again.