Skip to content

Commit 4c9ae66

Browse files
authored
Add missing brackets to example core matcher calls (#3252)
1 parent 9163ead commit 4c9ae66

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

documentation/docs/assertions/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Matchers provided by the `kotest-assertions-core` module.
2424
|---------------------------------------------| ---- |
2525
| `obj.shouldBeSameInstanceAs(other)` | Compares objects by identity, that is, they are the same exact reference. |
2626
| `obj.shouldBeTypeOf<T>()` | Asserts that the given reference is exactly of type T. Subclass will fail. Ie, `1 should beOfType<Number>` would fail because although 1 _is_ a Number, the runtime type is not Number. |
27-
| `obj.shouldBeInstanceOf<T>` | Asserts that the given reference is of type T or a subclass of T. |
27+
| `obj.shouldBeInstanceOf<T>()` | Asserts that the given reference is of type T or a subclass of T. |
2828
| `obj.shouldHaveAnnotation(annotationClass)` | Asserts that the object has an annotation of the given type. |
2929
| `obj.shouldBeNull()` | Asserts that a given reference is null.|
3030

documentation/versioned_docs/version-5.2/assertions/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Matchers provided by the `kotest-assertions-core` module.
2424
|---------------------------------------------| ---- |
2525
| `obj.shouldBeSameInstanceAs(other)` | Compares objects by identity, that is, they are the same exact reference. |
2626
| `obj.shouldBeTypeOf<T>()` | Asserts that the given reference is exactly of type T. Subclass will fail. Ie, `1 should beOfType<Number>` would fail because although 1 _is_ a Number, the runtime type is not Number. |
27-
| `obj.shouldBeInstanceOf<T>` | Asserts that the given reference is of type T or a subclass of T. |
27+
| `obj.shouldBeInstanceOf<T>()` | Asserts that the given reference is of type T or a subclass of T. |
2828
| `obj.shouldHaveAnnotation(annotationClass)` | Asserts that the object has an annotation of the given type. |
2929
| `obj.shouldBeNull()` | Asserts that a given reference is null.|
3030

documentation/versioned_docs/version-5.3/assertions/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Matchers provided by the `kotest-assertions-core` module.
2424
|---------------------------------------------| ---- |
2525
| `obj.shouldBeSameInstanceAs(other)` | Compares objects by identity, that is, they are the same exact reference. |
2626
| `obj.shouldBeTypeOf<T>()` | Asserts that the given reference is exactly of type T. Subclass will fail. Ie, `1 should beOfType<Number>` would fail because although 1 _is_ a Number, the runtime type is not Number. |
27-
| `obj.shouldBeInstanceOf<T>` | Asserts that the given reference is of type T or a subclass of T. |
27+
| `obj.shouldBeInstanceOf<T>()` | Asserts that the given reference is of type T or a subclass of T. |
2828
| `obj.shouldHaveAnnotation(annotationClass)` | Asserts that the object has an annotation of the given type. |
2929
| `obj.shouldBeNull()` | Asserts that a given reference is null.|
3030

documentation/versioned_docs/version-5.4/assertions/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Matchers provided by the `kotest-assertions-core` module.
2424
|---------------------------------------------| ---- |
2525
| `obj.shouldBeSameInstanceAs(other)` | Compares objects by identity, that is, they are the same exact reference. |
2626
| `obj.shouldBeTypeOf<T>()` | Asserts that the given reference is exactly of type T. Subclass will fail. Ie, `1 should beOfType<Number>` would fail because although 1 _is_ a Number, the runtime type is not Number. |
27-
| `obj.shouldBeInstanceOf<T>` | Asserts that the given reference is of type T or a subclass of T. |
27+
| `obj.shouldBeInstanceOf<T>()` | Asserts that the given reference is of type T or a subclass of T. |
2828
| `obj.shouldHaveAnnotation(annotationClass)` | Asserts that the object has an annotation of the given type. |
2929
| `obj.shouldBeNull()` | Asserts that a given reference is null.|
3030

documentation/versioned_docs/version-5.5/assertions/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Matchers provided by the `kotest-assertions-core` module.
2424
|---------------------------------------------| ---- |
2525
| `obj.shouldBeSameInstanceAs(other)` | Compares objects by identity, that is, they are the same exact reference. |
2626
| `obj.shouldBeTypeOf<T>()` | Asserts that the given reference is exactly of type T. Subclass will fail. Ie, `1 should beOfType<Number>` would fail because although 1 _is_ a Number, the runtime type is not Number. |
27-
| `obj.shouldBeInstanceOf<T>` | Asserts that the given reference is of type T or a subclass of T. |
27+
| `obj.shouldBeInstanceOf<T>()` | Asserts that the given reference is of type T or a subclass of T. |
2828
| `obj.shouldHaveAnnotation(annotationClass)` | Asserts that the object has an annotation of the given type. |
2929
| `obj.shouldBeNull()` | Asserts that a given reference is null.|
3030

0 commit comments

Comments
 (0)