Skip to content

Commit

Permalink
Adding some unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Sep 19, 2017
1 parent ebdb681 commit 2f782bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/metrics/distance/lig.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ describe('lig', function() {

it('should correctly compute the LIG1, LIG2 & LIG3 distance.', function() {
const tests = [
['', '', 1, 1, 1],
['Hello', 'Hello', 1, 1, 1],
['abc', 'def', 0, 0, 0],
['Glavin', 'Glawyn', 0.5, 0.67, 0.80],
['Williams', 'Vylliems', 0.45, 0.63, 0.77],
['Lewis', 'Louis', 0.43, 0.6, 0.75],
Expand Down

0 comments on commit 2f782bc

Please sign in to comment.