Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
philihp committed Jul 2, 2024
1 parent 319980e commit 9b28989
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/__tests__/constants.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@ describe('constants', () => {
expect.assertions(1)
expect(constants({}).TAU).toBeCloseTo(0.08333333)
})
it('defaults to not limiting sigma', () => {
expect.assertions(1)
const { LIMIT_SIGMA } = constants({})
expect(LIMIT_SIGMA).toBeFalsy()
})
})
})
1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const epsilon = (options: Options) => options?.epsilon ?? 0.0001
export const beta = (options: Options) => options?.beta ?? sigma(options) / 2
export const betaSq = (options: Options) => beta(options) ** 2
export const limitSigma = (options: Options) => options?.limitSigma ?? options?.preventSigmaIncrease ?? false
export const model = (options: Options) => options?.model ?? plackettLuce

export default (options: Options) => ({
EPSILON: epsilon(options),
Expand Down

0 comments on commit 9b28989

Please sign in to comment.