google / google/truth

Kotlin: Support `assertThat(foo) { isNotNull() isNotEqualTo(bar) ... }`

Open
#572 32 comments 0 reactions 0 assignees View on GitHub
P3 type=addition
Dominant language
Java
Stars
2.8k
Forks
275
Avg merge
7m
Merged PRs (30d)
4

Description

It's already possible to write nearly that by using `apply`:

```
assertThat(foo).apply {
isNotNull()
isNotEqualTo(bar)
}
```

Might it be worth a shortcut? Anecdotes welcome.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.