Skip to content

Commit

Permalink
Updates Brief tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolundgren committed Jul 20, 2014
1 parent b83336c commit 1657cd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/Brief.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
done();
},

// TODO: Update this test to generate randomWindowOffsets_ and randomImageOffsets_ instead.
testGetDescriptors: function(test) {
var descriptors;
var grayScale = [
Expand Down Expand Up @@ -66,8 +67,8 @@ module.exports = {
matchings = tracking.Brief.match(keypoints1, descriptors1, keypoints2, descriptors2);

test.equal(2, matchings.length, 'There should be 2 matchings');
test.equal(1, matchings[0], 'Keypoint 0 from 1st array should match keypoint 1 from the 2nd');
test.equal(0, matchings[1], 'Keypoint 1 from 1st array should match keypoint 0 from the 2nd');
test.equal(1, matchings[0].index2, 'Keypoint 0 from 1st array should match keypoint 1 from the 2nd');
test.equal(0, matchings[1].index2, 'Keypoint 1 from 1st array should match keypoint 0 from the 2nd');

test.done();
}
Expand Down

0 comments on commit 1657cd0

Please sign in to comment.