Atrium: add Sequence.asList()

Created on 21 Apr 2020  路  3Comments  路  Source: robstoll/atrium

Platform (jvm, js, android): all
Extension (none, kotlin 1.3, jdk8): none

Code related feature

expect(sequence).asList().get(20).toBe(2)

Following the things you need to do:

api-fluent

  • [ ] provide a fun asList which returns Expect<List<T>> (see asIterable as a guideline)
  • [ ] provide a fun asList which expects an assertionCreator-lambda and returns Expect<T> (see asIterable as a guideline)
  • [ ] add @since 0.12.0 (adapt to next release version) to KDOC
  • [ ] remodel ch.tutteli.atrium.api.fluent.en_GB.ListFeatureAssertionsSpec, extend Spek which includes ListSpec which you create as inner object (see ch.tutteli.atrium.api.fluent.en_GB.IterableAnyAssertionsSpec as a guideline)

    • [ ] add a SequenceSpec where you convert the given list to a sequence and then use asList -> see ch.tutteli.atrium.api.fluent.en_GB.IterableAnyAssertionsSpec.SequenceSpec)

api-infix

  • [ ] provide a fun asList which returns Expect<List<T>> (see asIterable as a guideline)
  • [ ] provide a fun asList which expects an assertionCreator-lambda and returns Expect<T> (see asIterable as a guideline)
  • [ ] add @since 0.12.0 (adapt to next release version) to KDOC
  • [ ] remodel ch.tutteli.atrium.api.infix.en_GB.ListFeatureAssertionsSpec, extend Spek which includes ListSpec which you create as inner object (see ch.tutteli.atrium.api.infix.en_GB.IterableAnyAssertionsSpec as a guideline)

    • [ ] add a SequenceSpec where you convert the given list to a sequence and then use asList -> see ch.tutteli.atrium.api.infix.en_GB.IterableAnyAssertionsSpec.SequenceSpec)

Your first contribution?

  • Write a comment I'll work on this if you would like to take this issue over.
    This way we get the chance to revise the description in case things have changed in the meantime, we might give you additional hints and we can assign the task to you, so that others do not start as well.
  • See Your first code contribution for guidelines.
  • Do not hesitate to ask questions here or to contact us via Atrium's slack channel if you need help
    (Invite yourself in case you do not have an account yet).
good first issue hacktoberfest help wanted

All 3 comments

i'll work on it

@Gugatke un-assign you so that others can take over

I did a similar issue and would work also on this one, if it's ok

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robstoll picture robstoll  路  5Comments

robstoll picture robstoll  路  5Comments

robstoll picture robstoll  路  6Comments

robstoll picture robstoll  路  6Comments

robstoll picture robstoll  路  4Comments