import { assertSetIsAtLeastSet } from './assertSetIsAtLeastSet' ; import { assertSetIsAtMostSet } from './assertSetIsAtMostSet' ; import { assertSetIsContainingAllOfIterable } from './assertSetIsContainingAllOfIterable' ; import { assertSetIsContainingAnyOfIterable } from './assertSetIsContainingAnyOfIterable' ; import { assertSetIsContainingItem } from './assertSetIsContainingItem' ; import { assertSetIsEmpty } from './assertSetIsEmpty' ; import { assertSetIsNotAtLeastSet } from './assertSetIsNotAtLeastSet' ; import { assertSetIsNotAtMostSet } from './assertSetIsNotAtMostSet' ; import { assertSetIsNotContainingAllOfIterable } from './assertSetIsNotContainingAllOfIterable' ; import { assertSetIsNotContainingAnyOfIterable } from './assertSetIsNotContainingAnyOfIterable' ; import { assertSetIsNotContainingItem } from './assertSetIsNotContainingItem' ; import { assertSetIsNotEmpty } from './assertSetIsNotEmpty' ; import { report } from '../../report' ; import { SetAssertions } from './SetAssertions' ; const getAssertionsForSet = function < TContent > ( actual ) : SetAssertions < TContent > { return { containing ( item ) { report ( assertSetIsContainingItem ( actual , item ) ) ; } , containingAllOf ( iterable ) { report ( assertSetIsContainingAllOfIterable ( actual , iterable ) ) ; } , containingAnyOf ( iterable ) { report ( assertSetIsContainingAnyOfIterable ( actual , iterable ) ) ; } , atLeast ( expected ) { report ( assertSetIsAtLeastSet ( actual , expected ) ) ; } , atMost ( expected ) { report ( assertSetIsAtMostSet ( actual , expected ) ) ; } , empty ( ) { report ( assertSetIsEmpty ( actual ) ) ; } } ; } ; const getNegatedAssertionsForSet = function < TContent > ( actual ) : SetAssertions < TContent > { return { containing ( item ) { report ( assertSetIsNotContainingItem ( actual , item ) ) ; } , containingAllOf ( iterable ) { report ( assertSetIsNotContainingAllOfIterable ( actual , iterable ) ) ; } , containingAnyOf ( iterable ) { report ( assertSetIsNotContainingAnyOfIterable ( actual , iterable ) ) ; } , atLeast ( expected ) { report ( assertSetIsNotAtLeastSet ( actual , expected ) ) ; } , atMost ( expected ) { report ( assertSetIsNotAtMostSet ( actual , expected ) ) ; } , empty ( ) { report ( assertSetIsNotEmpty ( actual ) ) ; } } ; } ; export { getAssertionsForSet , getNegatedAssertionsForSet } ;