Skip to content

Commit 4221457

Browse files
committed
Rename parsed_input.dump to input.dump
1 parent 4289f94 commit 4221457

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func TestParse(t *testing.T) {
99
actualParsedInput, _ := ParseFile("testdata/input.gmi")
1010
actual := dumper.Sdump(actualParsedInput)
1111

12-
expectedParsedInput, _ := os.ReadFile("testdata/parsed_input.dump")
12+
expectedParsedInput, _ := os.ReadFile("testdata/input.dump")
1313
expected := string(expectedParsedInput)
1414

1515
if actual != expected {

testdata/update.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func printerrln(a ...any) (int, error) {
2727
func main() {
2828
flag.CommandLine.Init("", flag.ContinueOnError)
2929
flag.CommandLine.SetOutput(io.Discard)
30-
updateParsedInputDump := flag.Bool("parsed-input-dump", false, "")
30+
updateInputDump := flag.Bool("input-dump", false, "")
3131
updateOutputGMI := flag.Bool("output-gmi", false, "")
3232
updateOutputHTML := flag.Bool("output-html", false, "")
3333
flag.Parse()
@@ -76,9 +76,9 @@ func main() {
7676
printerrln(err)
7777
}
7878

79-
if *updateParsedInputDump {
79+
if *updateInputDump {
8080
if err := os.WriteFile(
81-
filepath.Join(testdataDir, "parsed_input.dump"),
81+
filepath.Join(testdataDir, "input.dump"),
8282
[]byte(dumper.Sdump(asl)),
8383
0600,
8484
); err != nil {

0 commit comments

Comments
 (0)