SIGBlockchain / project_aurum

SIG Blockchain blockchain project in Go
https://acm.cs.uic.edu/sigblockchain
MIT License
7 stars 0 forks source link

completed issue 324 #329

Closed bashbashbash closed 5 years ago

bashbashbash commented 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, },

              ...

}