Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusAmshove committed Feb 9, 2016
1 parent 72f7af5 commit 3e9aee4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,16 @@ Kluent:
val alice = Person("Alice", "Bob")
val jon = Person("Jon", "Doe")
val list = listOf(alice, jon)
list shouldContain jon
OR
list `should contain` jon

## Assert that an Array/Iterable doesn't contain something ##

val alice = Person("Alice", "Bob")
val jon = Person("Jon", "Doe")
val list = listOf(alice, jon)
list shouldNotContain
list shouldNotContain alice
OR
list `should not contain` alice

Expand All @@ -98,7 +100,7 @@ Kluent:
## Assert that something throws an Exception with a specific message ##

val func = { throw Exception("Hello World!") }
func `shouldThrowTheException` Exception::class withMessage "Hello World!"
func shouldThrowTheException Exception::class withMessage "Hello World!"
OR
func `should throw the Exception` Exception::class `with message` "Hello World!"

Expand Down

0 comments on commit 3e9aee4

Please sign in to comment.