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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@ Kotlin Common Assertions
5
5
Kass is a multiplatform library, supporting JVM, Android, iOS (x64, ARM, Simulator-ARM), JS.
6
6
7
7
## Usage
8
-
`assert()` and `assume()` both return objects that allow you to write expectations in a fluent style.
9
-
`assert()` returns an `Assertion` object, while `assume()` returns an `Assumption` object.
8
+
`assertThat(subject, statement)` and `assumeThat(subject, statement)` both evaluate the given subject against a given statement, which can be written in a fluent style using the provided statement functions.
9
+
10
10
When an assumption fails, the test execution will stop at that point, throwing a `FailedAssumption` error.
11
-
To catch this error and fail silently, use the `runScenario(subject)` which takes a collection that
11
+
To catch this error and fail silently, use `testScenario(subjects)` which takes a collection that
12
12
provides subjects and a lambda executed on a Scenario object that wraps each subject.
13
-
Use testHypothesis() to run a single test without an implicit subject.
13
+
Use `testHypothesis()` to run a single test without an implicit subject.
14
14
15
15
When an assertion fails, tests fail normally.
16
16
@@ -21,27 +21,27 @@ When an assertion fails, tests fail normally.
0 commit comments