Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitLines ¶
SplitLines splits an input to its lines except the last few ones if they are empty
func SplitLinesToInts ¶
SplitLinesToInts splits input via newlines and then turns said slice into a slice of ints.
func StringsToInts ¶
StringsToInts turns a slice of strings to ints. Returns an error if one of the strings cannot be parsed.
Types ¶
type TestCase ¶
type TestCase struct { Details string // what is the testcase testing? Input string Result1 string Result2 string WantErr bool // do we want an error to return? }
TestCase represents a test case. If Result1 or Result2 are empty, do not test for those. This could be done if they are not literal answers and require a human to read them properly.
Click to show internal directories.
Click to hide internal directories.