We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b179204 commit efe5fc2Copy full SHA for efe5fc2
docs/topics/power-assert.md
@@ -12,6 +12,20 @@ It simplifies the process of writing tests by automatically generating
12
intermediate values in failure messages.
13
It helps you understand why a test failed without needing complex assertion libraries.
14
15
+This is an example message provided by the plugin:
16
+
17
+```text
18
+Incorrect length
19
+assert(hello.length == world.substring(1, 4).length) { "Incorrect length" }
20
+ | | | | | |
21
+ | | | | | 3
22
+ | | | | orl
23
+ | | | world!
24
+ | | false
25
+ | 5
26
+ Hello
27
+```
28
29
The Power-assert plugin key features:
30
31
* **Enhanced error messages**: The plugin captures and displays the values of variables and
0 commit comments