Skip to content

Commit e9d0ddc

Browse files
authored
change test output to match previous example (ast-grep#611)
1 parent fb406b8 commit e9d0ddc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/guide/test-rule.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ FAIL no-await-in-loop ...........N............M
131131
----------- Failure Details -----------
132132
[Noisy] Expect no-await-in-loop to report no issue, but some issues found in:
133133
134-
async function foo() { for await (var x of xs) { while (1) await f(x) } }
134+
async function foo() { for (var bar of baz) await bar; }
135135
136136
[Missing] Expect rule no-await-in-loop to report issues, but none found in:
137137
@@ -140,7 +140,7 @@ FAIL no-await-in-loop ...........N............M
140140
Error: test failed. 0 passed; 1 failed;
141141
```
142142

143-
The output shows that we have two failed cases. One is a **noisy** match, which means ast-grep reports error for valid code.The other is a **missing** match, which means ast-grep reports nothing for invalid code.
143+
The output shows that we have two failed cases. One is a **noisy** match, which means ast-grep reports error for valid code. The other is a **missing** match, which means ast-grep reports nothing for invalid code.
144144
In the test summary, we can see the cases are marked with `N` and `M` respectively.
145145
In failure details, we can see the detailed code snippet for each case.
146146

@@ -194,4 +194,4 @@ For Code:
194194
Accept new snapshot? (Yes[y], No[n], Accept All[a], Quit[q])
195195
```
196196

197-
Pressing the `y` key will accept the new snapshot and update the snapshot file.
197+
Pressing the `y` key will accept the new snapshot and update the snapshot file.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy