Skip to content

Commit 1657cd0

Browse files
Updates Brief tests
1 parent b83336c commit 1657cd0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/Brief.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
done();
1212
},
1313

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

6869
test.equal(2, matchings.length, 'There should be 2 matchings');
69-
test.equal(1, matchings[0], 'Keypoint 0 from 1st array should match keypoint 1 from the 2nd');
70-
test.equal(0, matchings[1], 'Keypoint 1 from 1st array should match keypoint 0 from the 2nd');
70+
test.equal(1, matchings[0].index2, 'Keypoint 0 from 1st array should match keypoint 1 from the 2nd');
71+
test.equal(0, matchings[1].index2, 'Keypoint 1 from 1st array should match keypoint 0 from the 2nd');
7172

7273
test.done();
7374
}

0 commit comments

Comments
 (0)