Skip to content

Commit c72f3fc

Browse files
committed
[2020] Fix bug with input handling
1 parent 0900e7e commit c72f3fc

File tree

26 files changed

+27
-27
lines changed

26 files changed

+27
-27
lines changed

2020/day01/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestProductOfEntries(t *testing.T) {
2222
}
2323

2424
func TestInput(t *testing.T) {
25-
name := lib.GetTestFilePath("input.txt")
25+
name := lib.GetInputFilePath()
2626
values, err := parseFile(name)
2727
assert.NoError(t, err)
2828

2020/day02/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func TestInput(t *testing.T) {
11-
name := lib.GetTestFilePath("input.txt")
11+
name := lib.GetInputFilePath()
1212
parsedLines, err := parseInput(name)
1313
assert.NoError(t, err)
1414

2020/day03/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func TestInput(t *testing.T) {
11-
name := lib.GetTestFilePath("input.txt")
11+
name := lib.GetInputFilePath()
1212
grid, err := parseInput(name)
1313
assert.NoError(t, err)
1414

2020/day04/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestPart2(t *testing.T) {
6767
}
6868

6969
func TestInput(t *testing.T) {
70-
name := lib.GetTestFilePath("input.txt")
70+
name := lib.GetInputFilePath()
7171
passports, err := parseInput(name)
7272
assert.NoError(t, err)
7373

2020/day05/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestPart1(t *testing.T) {
2626
}
2727

2828
func TestInput(t *testing.T) {
29-
name := lib.GetTestFilePath("input.txt")
29+
name := lib.GetInputFilePath()
3030
lines, err := lib.LoadFileLines(name)
3131
assert.NoError(t, err)
3232

2020/day06/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func TestInput(t *testing.T) {
11-
name := lib.GetTestFilePath("input.txt")
11+
name := lib.GetInputFilePath()
1212
lines, err := lib.LoadFileLines(name)
1313
assert.NoError(t, err)
1414

2020/day07/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestExamples(t *testing.T) {
3737
}
3838

3939
func TestInput(t *testing.T) {
40-
name := lib.GetTestFilePath("input.txt")
40+
name := lib.GetInputFilePath()
4141
lines, err := lib.LoadFileLines(name)
4242
assert.NoError(t, err)
4343

2020/day08/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestExample(t *testing.T) {
2828
}
2929

3030
func TestInput(t *testing.T) {
31-
name := lib.GetTestFilePath("input.txt")
31+
name := lib.GetInputFilePath()
3232
lines, err := lib.LoadFileLines(name)
3333
assert.NoError(t, err)
3434

2020/day09/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestExamples(t *testing.T) {
3737
}
3838

3939
func TestInput(t *testing.T) {
40-
name := lib.GetTestFilePath("input.txt")
40+
name := lib.GetInputFilePath()
4141
lines, err := lib.LoadFileLines(name)
4242
assert.NoError(t, err)
4343

2020/day10/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestExample2(t *testing.T) {
7272
}
7373

7474
func TestInput(t *testing.T) {
75-
name := lib.GetTestFilePath("input.txt")
75+
name := lib.GetInputFilePath()
7676
lines, err := lib.LoadFileLines(name)
7777
assert.NoError(t, err)
7878

0 commit comments

Comments
 (0)