Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac0d61 commit d41b6aaCopy full SHA for d41b6aa
1 file changed
Maths/test/FareyApproximation.test.js
@@ -3,11 +3,11 @@ import { fareyApproximation } from '../FareyApproximation'
3
describe('fareyApproximation', () => {
4
it('Return Farey Approximation of 0.7538385', () => {
5
const approx = fareyApproximation(0.7538385)
6
- expect(approx).toBe({ numerator: 22, denominator: 29 })
+ expect(approx).toBe({ numerator: 52, denominator: 69 })
7
})
8
9
it('Return Farey Approximation of 0.23584936', () => {
10
const approx = fareyApproximation(0.23584936)
11
- expect(approx).toBe({ numerator: 13, denominator: 55 })
+ expect(approx).toBe({ numerator: 196, denominator: 831 })
12
13
0 commit comments