You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform (all, jvm, js): all Extension (none, kotlin 1.3): none
Code related feature
val list =listOf(1, 3, 4)
expect(list) {
last.toEqual(1)
last {
toBeGreaterThan(0)
toBeLessThan(0)
}
}
//instead of
expect(list) {
get(list.size -1).toEqual(1)
get(List.size -1) {
toBeGreaterThan(0)
toBeLessThan(0)
}
}
Following the things you need to do:
logic
extend ListAssertions with a function last (see MapEntryAssertions key as a guideline)
implement last in DefaultListAssertions.kt by using the ExpectImpl.feature.extractor... (see get as guideline)
api-fluent
provide a val which returns Expect<E> in listFeatureExtractors.kt (see mapEntryFeatureExtractors.kt key as a guideline)
provide a fun which expects an assertionCreator-lambda and returns Expect<T> in listFeatureExtractors.kt (see mapEntryFeatureExtractors.kt key as a guideline)
extend ListExpectationsSpec in specs -> commonMain (see get... params in this spec) and extend it in atrium-api-fluent -> commonTest
add samples to ListFeatureExtractoSamples.kt (see getFeature and get as guideline -- try to provide the reason why an expectation fails)
add @since 1.2.0 (adapt to current milestone) to KDOC
api-infix
provide a val which returns Expect<E> in listFeatureExtractors.kt (see mapEntryFeatureExtractors.kt key as a guideline)
provide a fun which expects an assertionCreator-lambda and returns Expect<T> in listFeatureExtractors.kt (see mapEntryFeatureExtractors.kt key as a guideline)
extend ListExpectationsSpec in specs -> commonMain (see get... params in this spec) and extend it in atrium-api-fluent -> commonTest
add samples to ListFeatureExtractoSamples.kt (see getFeature and get as guideline -- try to provide the reason why an expectation fails)
add @since 1.2.0 (adapt to current milestone) to KDOC
The text was updated successfully, but these errors were encountered:
@constantine-zubrilin always good to write here before you start but nice you saw that rakshitriya wrote here 👍
@rakshitriya we find you another issue to work on. take a look at the other good first issues and in case you don't find a suiting one then let me know
Platform (all, jvm, js): all
Extension (none, kotlin 1.3): none
Code related feature
Following the things you need to do:
logic
last
(see MapEntryAssertionskey
as a guideline)ExpectImpl.feature.extractor...
(seeget
as guideline)api-fluent
Expect<E>
in listFeatureExtractors.kt (see mapEntryFeatureExtractors.ktkey
as a guideline)assertionCreator
-lambda and returnsExpect<T>
in listFeatureExtractors.kt (see mapEntryFeatureExtractors.ktkey
as a guideline)@since 1.2.0
(adapt to current milestone) to KDOCapi-infix
Expect<E>
in listFeatureExtractors.kt (see mapEntryFeatureExtractors.ktkey
as a guideline)assertionCreator
-lambda and returnsExpect<T>
in listFeatureExtractors.kt (see mapEntryFeatureExtractors.ktkey
as a guideline)@since 1.2.0
(adapt to current milestone) to KDOCThe text was updated successfully, but these errors were encountered: