forked from llipio/algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const expect = require('chai').expect; | ||
let solution = require('../solutions/61').solution; | ||
// solution = require('./yourSolution').solution; | ||
|
||
describe('greatest common denominator', () => { | ||
it('the gcd for 16 and 24 is 8', () => { | ||
expect(solution(16,24)).eql(8); | ||
}); | ||
it('the gcd for 5 and 6 is 1', () => { | ||
expect(solution(5,6)).eql(1); | ||
}); | ||
it('the gcd for 50 and 60 is 10', () => { | ||
expect(solution(50,60)).eql(10); | ||
}); | ||
it('the gcd for 40 and 20 is 20', () => { | ||
expect(solution(40,20)).eql(20); | ||
}); | ||
it('the gcd for 20 and 40 is 20', () => { | ||
expect(solution(20,40)).eql(20); | ||
}); | ||
it('the gcd for 1 and 4 is 1', () => { | ||
expect(solution(1,4)).eql(1); | ||
}); | ||
}); |