You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,4 +67,26 @@ Use the `in.rcard.assertj.arrowcore.EitherAssert` class as an entry point to ass
67
67
|`asRight`| Verifies that the actual `Either` is not `null` and contains a right-sided value and returns an `Object` assertion that allows chaining (object) assertions on the value. |
68
68
|`containsOnLeft`| Verifies that the actual `Either` is `Either.Left` and contains the given value. |
69
69
|`containsLeftInstanceOf`| Verifies that the actual left-sided `Either` contains a value that is an instance of the argument. |
70
-
|`asLeft`| Verifies that the actual `Either` is not `null` and contains a left-sided value and returns an `Object` assertion that allows chaining (object) assertions on the value. |
70
+
|`asLeft`| Verifies that the actual `Either` is not `null` and contains a left-sided value and returns an `Object` assertion that allows chaining (object) assertions on the value. |
71
+
72
+
### `Raise<E>.() -> A`
73
+
74
+
Use the `in.rcard.assertj.arrowcore.RaiseAssert` class as an entry point to assert `Raise<E>.() -> A` instances. There
75
+
are many different entry points, all of them available boh for regular and `suspend` functions:
|`succeedsWith`| Verifies that the function in the `Raise` context succeeds with the given value. |
88
+
|`succeeds`| Verifies that the function in the `Raise` context succeeded. No check on the value returned by the function is performed. |
89
+
|`raises`| Verifies that the function in the Raise context fails with the given error. |
90
+
|`fails`| Verifies that the function in the Raise context fails, no matter the type of the logical error. |
91
+
|`result`| Verifies that the actual function in the `Raise` context succeeds and returns an `Object` assertion that allows chaining (object) assertions on the returned value. |
92
+
|`error`| Verifies that the actual function in the Raise context fails and returns an Object assertion that allows chaining (object) assertions on the raised error. |
0 commit comments