Skip to content

Commit 056c459

Browse files
committed
add syntax highlighting
1 parent 212b84e commit 056c459

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
AssertK provides a Kotlin-friendly syntax for using the amazing AssertJ assertion framework.
33

44
###Simple assertions
5-
```
5+
```kotlin
66
assert that Unit isEqualTo Unit
77
assert that Any() isNotEqualTo Any()
88
assert that Any() _is notNull
@@ -12,12 +12,12 @@ assert that Any() describedAs "A labeled object" isInstance of<Unit>()
1212
```
1313

1414
###Chained syntax
15-
```
15+
```kotlin
1616
assert that Unit isNotEqualTo Any() isEqualTo Unit _is notNull isInstance of<Any>()
1717
```
1818

1919
###Block syntax
20-
```
20+
```kotlin
2121
assert that Any() isSuchThat {
2222
it _is notNull
2323
it isInstance of<Any>()
@@ -28,12 +28,12 @@ assert that Any() isSuchThat {
2828

2929
##Assertions on exceptions
3030
###Chained syntax
31-
```
31+
```kotlin
3232
assert thatExceptionIsThrownBy { failFunction() } hasMessageContaining "foo" hasCause Throwable()
3333
```
3434

3535
###Block syntax
36-
```
36+
```kotlin
3737
assert thatExceptionIsThrownBy {
3838
throw Throwable("exception foo", Throwable())
3939
} and {
@@ -47,7 +47,7 @@ assert thatExceptionIsThrownBy {
4747
```
4848

4949
##Get it
50-
```
50+
```groovy
5151
allprojects {
5252
repositories {
5353
...

0 commit comments

Comments
 (0)