The task was created from Tino according to his go-workshop.
I want to have a function, which gets two strings and makes a hamming string comparison and returns the value.
- valid hamming result
- in case of invalid string length, the function should return -1
- passes all test-cases
- also support Chinese characters
- define function signiture
- write unit tests for the function
- implement the function
- implement cli wrapper with one input argument for the possible isbn
- implement integration tests for the CLI
- implement input argument to pass a csv file-path with a list of possible ISBNs
- expend integration tests for the CLI with CSV file
$ go run main.go
$ go test main.go main_test.go