Skip to content

Commit 6960475

Browse files
committed
[2020] Use private inputs
1 parent 4d3f21e commit 6960475

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

2020/lib/testing.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ func GetTestFilePath(name string) string {
1010
// Hack to build a relative path based on the stack frame
1111
_, filename, _, _ := runtime.Caller(1)
1212
dir := filepath.Dir(filename)
13-
return filepath.Join(dir, name)
13+
dayDir := filepath.Base(dir)
14+
return filepath.Join(dir, "..", "..", "private", "inputs", "2020", dayDir+".txt")
1415
}

0 commit comments

Comments
 (0)