Skip to content

Commit

Permalink
generate README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Aug 20, 2024
1 parent ce5304d commit 822ed7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ Its usage is then as follows:
<ex-own-compose-3>

```kotlin
expect(Person("Susanne", "Whitley", 43, listOf()))
expect(Person("Susanne", "Whitley", 43, emptyList()))
.toHaveNumberOfChildren(2)
```
↑ <sub>[Example](https://github.com/robstoll/atrium/tree/main/misc/tools/readme-examples/src/main/kotlin/readme/examples/OwnExpectationFunctionsSpec.kt#L74)</sub> ↓ <sub>[Output](#ex-own-compose-3)</sub>
Expand Down Expand Up @@ -2427,7 +2427,7 @@ I.e. it fails for a `Person` with 0 children, because such a person does not hav
<ex-own-compose-4>

```kotlin
expect(Person("Susanne", "Whitley", 43, listOf()))
expect(Person("Susanne", "Whitley", 43, emptyList()))
.toHaveAdultChildren()
```
↑ <sub>[Example](https://github.com/robstoll/atrium/tree/main/misc/tools/readme-examples/src/main/kotlin/readme/examples/OwnExpectationFunctionsSpec.kt#L91)</sub> ↓ <sub>[Output](#ex-own-compose-4)</sub>
Expand Down Expand Up @@ -2461,7 +2461,7 @@ With this, we can write things like:
<ex-own-compose-5>

```kotlin
expect(Person("Susanne", "Whitley", 43, listOf(Person("Petra", "Whitley", 12, listOf()))))
expect(Person("Susanne", "Whitley", 43, listOf(Person("Petra", "Whitley", 12, emptyList()))))
.children { // using the fun -> expectation-group, ergo sub expectations don't fail fast
toHaveElementsAndNone {
feature { f(it::firstName) }.toStartWith("Ro")
Expand Down

0 comments on commit 822ed7c

Please sign in to comment.