Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 07120eb

Browse files
~? annotation type is special
It does not do any line matching, so it should be separated from the other types
1 parent 5d24aed commit 07120eb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎src/tests/ui.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ They have several forms, but generally are a comment with the diagnostic level
192192
to write out the entire message, just make sure to include the important part of
193193
the message to make it self-documenting.
194194

195-
The error annotation needs to match with the line of the diagnostic. There are
195+
Most error annotations need to match with the line of the diagnostic. There are
196196
several ways to match the message with the line (see the examples below):
197197

198198
* `~`: Associates the error level and message with the *current* line
@@ -205,9 +205,6 @@ several ways to match the message with the line (see the examples below):
205205
* `~v`: Associates the error level and message with the *next* error
206206
annotation line. Each symbol (`v`) that you add adds a line to this, so `~vvv`
207207
is three lines below the error annotation line.
208-
* `~?`: Used to match error levels and messages with errors not having line
209-
information. These can be placed on any line in the test file, but are
210-
conventionally placed at the end.
211208

212209
Example:
213210

@@ -222,6 +219,10 @@ The space character between `//~` (or other variants) and the subsequent text is
222219
negligible (i.e. there is no semantic difference between `//~ ERROR` and
223220
`//~ERROR` although the former is more common in the codebase).
224221

222+
`~?` is used to match error levels and messages with errors not having line
223+
information. These can be placed on any line in the test file, but are
224+
conventionally placed at the end.
225+
225226
### Error annotation examples
226227

227228
Here are examples of error annotations on different lines of UI test source.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /