mirror of
https://github.com/cheat/cheat.git
synced 2024-12-19 03:05:06 +01:00
20 lines
357 B
Markdown
20 lines
357 B
Markdown
# Lexer tests
|
|
|
|
The tests in this directory feed a known input `testdata/<name>.actual` into the parser for `<name>` and check
|
|
that its output matches `<name>.exported`.
|
|
|
|
## Running the tests
|
|
|
|
Run the tests as normal:
|
|
```go
|
|
go test ./lexers
|
|
```
|
|
|
|
## Updating the existing tests
|
|
|
|
You can regenerate all the test outputs
|
|
|
|
```go
|
|
RECORD=true go test ./lexers
|
|
```
|