Closed bashbashbash closed 5 years ago
Even though the tests have been consolidated, I would like to implement the tests in a slightly better way using a struct, something like this from another test:
My question is, would this be a cleaner way? I think so but don't want to waste time
tests := []struct { input [][]byte want bool }{ { []byte{something}, true, },
...
}
Even though the tests have been consolidated, I would like to implement the tests in a slightly better way using a struct, something like this from another test:
My question is, would this be a cleaner way? I think so but don't want to waste time
tests := []struct { input [][]byte want bool }{ { []byte{something}, true, },
}