Documentation ¶
Overview ¶
Package test provides some handy testing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Runner ¶
func Runner(t *testing.T, puzzle, want string, process func(string), printf *func(string, ...interface{}) (int, error))
Runner runs the provided process by placing the puzzle input into a temporary file and passing the filename to the process. It then tests that the resulting output (by overriding the `printf` method) matches the desired output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.