chore: Update test values

This commit is contained in:
Rak Laptudirm
2021-07-19 13:21:35 +05:30
committed by GitHub
parent 6ac0d61185
commit d41b6aade5

View File

@ -3,11 +3,11 @@ import { fareyApproximation } from '../FareyApproximation'
describe('fareyApproximation', () => { describe('fareyApproximation', () => {
it('Return Farey Approximation of 0.7538385', () => { it('Return Farey Approximation of 0.7538385', () => {
const approx = fareyApproximation(0.7538385) const approx = fareyApproximation(0.7538385)
expect(approx).toBe({ numerator: 22, denominator: 29 }) expect(approx).toBe({ numerator: 52, denominator: 69 })
}) })
it('Return Farey Approximation of 0.23584936', () => { it('Return Farey Approximation of 0.23584936', () => {
const approx = fareyApproximation(0.23584936) const approx = fareyApproximation(0.23584936)
expect(approx).toBe({ numerator: 13, denominator: 55 }) expect(approx).toBe({ numerator: 196, denominator: 831 })
}) })
}) })