Platform (jvm, jdk8, js, android): all
expect(subject).isNoneOf(a, b, ...)
expect(subject).isNotIn(iterable)
//instead of
expect(subject).notToBe(a).notToBe(b)...
expect(subject).notToBe(iterable.next()).notToBe(iterable.next())...
However, reporting should not state multiple not to be (in case of a Reporter which shows all assertions) but reflect the intended grouping.
For instance:
expect(1).isNoneOf(1, 2, 3, 1)
should result in
expect: 1
* is none of:
- 1
As we can see from the example, we don't have to check for unique values, that's the responsibility of the developer. Moreover, we want fail-fast behaviour (thus we don't see the second 1 in reporting).
Following the things you need to do:
atrium-logic
isNotIn which expects a List<T> (see existing functions as a guideline)assertionBuilder.list..IS_NONE_OF("is none of") to DescriptionAnyAssertion for en_GBIS_NONE_OF("ist nicht") to DescriptionAnyAssertion for de_CHwithDescriptionAndEmptyRepresentationList<T> to an assertionBuilder.representationOnly (similar to /domain/robstoll-lib/atrium-domain-robstoll-lib-common/src/main/kotlin/ch/tutteli/atrium/domain/robstoll/lib/creating/iterable/contains/creators/InAnyOrderOnlyAssertionCreator.kt => createExplanatoryGroupForMismatchesEtc) and use them for withAssertionsapi-fluent-en_GB
isNoneOf with signature (T, vararg T) (see mapAssertions.kt -> contains as a guideline)@since 0.9.0 to KDOCisNotIn with signature Iterable<T>require that the Iterable.iterator.hasNext() @since 0.9.0 to KDOCI'll work on this if you would like to take this issue over.I'll work on this.
Hi, is someone working on this, else I will take over
@DeMack, are you working on this? Else, I will start
@DeMack do you need help? un-assining you so that others can take over until I get a response
I'll work on this.
@gawarz let me know in case you need help
@gawarz unassigning you so that others can take over. Just leave a comment here in case you still work on it and I assign you again.
I'll work on this
@Jak-Sidious I just updated the description
@Jak-Sidious un-assigning you so that others can take over
I'll work on this
Hello. I won't be able to finish this issue. please unasign me
@robstoll can I work on this?