Skip to content

Commit

Permalink
Merge commit '4e1e4f7f68a53e9c89f543f9f142f9f3458b63a0' into V0.9.7.3…
Browse files Browse the repository at this point in the history
…-dev
  • Loading branch information
christkv committed Dec 30, 2011
2 parents e7ec8aa + 4e1e4f7 commit a3d26cd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/index_test.js
Expand Up @@ -293,10 +293,13 @@ var tests = testCase({
collection.ensureIndex({loc:'2d'},{min:0,max:1024}, function(err, indexName) {
collection.insert({'loc': [100,100]}, {safe:true}, function(err, result) {
test.equal(err,null);
collection.insert({'loc': [-200,-200]}, {safe:true}, function(err, result) {
err = err ? err : {};
test.equal(err.err,"point not in interval of [ 0, 1024 )");
test.done();
collection.insert({'loc': [200,200]}, {safe:true}, function(err, result) {
test.equal(err,null);
collection.insert({'loc': [-200,-200]}, {safe:true}, function(err, result) {
err = err ? err : {};
test.equal(err.err,"point not in interval of [ 0, 1024 )");
test.done();
});
});
});
});
Expand Down

0 comments on commit a3d26cd

Please sign in to comment.