import { assertNumberIsAtLeastNumber } from './assertNumberIsAtLeastNumber' ; import { assertNumberIsAtMostNumber } from './assertNumberIsAtMostNumber' ; import { assertNumberIsGreaterThanNumber } from './assertNumberIsGreaterThanNumber' ; import { assertNumberIsLessThanNumber } from './assertNumberIsLessThanNumber' ; import { assertNumberIsNaN } from './assertNumberIsNaN' ; import { assertNumberIsNotAtLeastNumber } from './assertNumberIsNotAtLeastNumber' ; import { assertNumberIsNotAtMostNumber } from './assertNumberIsNotAtMostNumber' ; import { assertNumberIsNotGreaterThanNumber } from './assertNumberIsNotGreaterThanNumber' ; import { assertNumberIsNotLessThanNumber } from './assertNumberIsNotLessThanNumber' ; import { assertNumberIsNotNaN } from './assertNumberIsNotNaN' ; import { NumberAssertions } from './NumberAssertions' ; import { report } from '../../report' ; const getAssertionsForNumber = function ( actual ) : NumberAssertions { return { greaterThan ( expected ) { report ( assertNumberIsGreaterThanNumber ( actual , expected ) ) ; } , lessThan ( expected ) { report ( assertNumberIsLessThanNumber ( actual , expected ) ) ; } , atLeast ( expected ) { report ( assertNumberIsAtLeastNumber ( actual , expected ) ) ; } , atMost ( expected ) { report ( assertNumberIsAtMostNumber ( actual , expected ) ) ; } , NaN ( ) { report ( assertNumberIsNaN ( actual ) ) ; } } ; } ; const getNegatedAssertionsForNumber = function ( actual ) : NumberAssertions { return { greaterThan ( expected ) { report ( assertNumberIsNotGreaterThanNumber ( actual , expected ) ) ; } , lessThan ( expected ) { report ( assertNumberIsNotLessThanNumber ( actual , expected ) ) ; } , atLeast ( expected ) { report ( assertNumberIsNotAtLeastNumber ( actual , expected ) ) ; } , atMost ( expected ) { report ( assertNumberIsNotAtMostNumber ( actual , expected ) ) ; } , NaN ( ) { report ( assertNumberIsNotNaN ( actual ) ) ; } } ; } ; export { getAssertionsForNumber , getNegatedAssertionsForNumber } ;