Skip to content

Commit 57d84da

Browse files
committed
add empty input test case for update-checks-doc script
1 parent 7e16525 commit 57d84da

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

scripts/update-checks-doc/main.go

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,16 +202,19 @@ func (u *Updater) Update() {
202202

203203
// State transition
204204
//
205-
// ┌────┐ ┌──────┐ ┌───────┐ ┌──────┐ ┌─────┐ ┌─────┐
205+
// backtrack
206+
// ┌───────┐
207+
// ┌──▼─┐ ┌──┴───┐ ┌───────┐ ┌──────┐ ┌─────┐ ┌─────┐
206208
// │init│─►│anchor│─►│heading│─►│input │─►│input│─►│after│────┐
207209
// └────┘ │ │ │ │ │header│ │block│ │input│ │
208-
// └──▲───┘ └───────┘ └──▲───┘ └─────┘ └─────┘ ┌──▼───┐
209-
// next │ more │ skip │output│
210-
// section│ example│ ┌──────────────│header│
211-
// │ ┌─┴─┐ ┌───▼──┐ ┌──────┐ └──┬───┘
212-
// ┌────┐ └──────────────────┤end│◄─│after │◄─│output│◄───┘
213-
// │done│◄───────────────────────┤ │ │output│ │block │
214-
// └────┘ └───┘ └──────┘ └──────┘
210+
// └──▲┬──┘ └───────┘ └──▲───┘ └─────┘ └─────┘ ┌──▼───┐
211+
// next ││ more │ skip │output│
212+
// section││ example│ ┌──────────────│header│
213+
// ││backtrack ┌───┐ ┌───▼──┐ ┌──────┐ └──┬───┘
214+
// │└────────────────►│end│◄─│after │◄─│output│◄───┘
215+
// ┌────┐ └──────────────────│ │ │output│ │block │
216+
// │done│◄───────────────────────│ │ └──────┘ └──────┘
217+
// └────┘ └───┘
215218
//
216219
switch u.cur {
217220
case stateInit, stateEnd:

scripts/update-checks-doc/testdata/err/empty.md

Whitespace-only changes.

0 commit comments

Comments
 (0)