-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move test assertion generation into testcase
- Loading branch information
1 parent
6227d9b
commit 8548c73
Showing
3 changed files
with
35 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 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 run ./lexers | ||
``` | ||
|
||
## Updating the existing tests | ||
|
||
You can regenerate all the test outputs | ||
|
||
```go | ||
RECORD=true go test ./lexers | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.