Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/guide/test-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ FAIL no-await-in-loop ...........N............M
----------- Failure Details -----------
[Noisy] Expect no-await-in-loop to report no issue, but some issues found in:

async function foo() { for await (var x of xs) { while (1) await f(x) } }
async function foo() { for (var bar of baz) await bar; }

[Missing] Expect rule no-await-in-loop to report issues, but none found in:

Expand All @@ -140,7 +140,7 @@ FAIL no-await-in-loop ...........N............M
Error: test failed. 0 passed; 1 failed;
```

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.
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.
In the test summary, we can see the cases are marked with `N` and `M` respectively.
In failure details, we can see the detailed code snippet for each case.

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

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