Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list check to examples #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ null.isNull()

true.isTrue();
{ null.isTrue() } throws Error::class

listOf(1, "2") passes listCheck(
{ it isEqualTo 1 },
{ it isEqualTo "2" })
```

## Setup

``` gradle
dependencies {
...
testCompile 'se.lovef:kotlin-assert-utils:0.1.1'
testCompile 'se.lovef:kotlin-assert-utils:0.2.1'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

testCompile 'se.lovef:kotlin-assert-utils:0.1.1'
testCompile 'se.lovef:kotlin-assert-utils:0.2.1'
}

repositories {
Expand Down
4 changes: 4 additions & 0 deletions example/src/test/kotlin/se/lovef/example/ExampleTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@ class ExampleTest {

true.isTrue();
{ null.isTrue() } throws Error::class

listOf(1, "2") passes listCheck(
{ it isEqualTo 1 },
{ it isEqualTo "2" })
}
}