aboutsummaryrefslogtreecommitdiff
path: root/test/bottin_test.go
diff options
context:
space:
mode:
authorMrArmonius <mrarmonius@gmail.com>2021-07-26 15:36:45 +0200
committerMrArmonius <mrarmonius@gmail.com>2021-07-26 15:36:45 +0200
commita53641e773730ba171df2602c8d199968d6e6447 (patch)
tree4f34557bddea0482281b08d505b0789b44263952 /test/bottin_test.go
parent9a8c19ec0f9b2f09daab244a49c67904c5c086aa (diff)
downloadbottin-Correct_Test_GenerateName.tar.gz
bottin-Correct_Test_GenerateName.zip
Correct the function GenerateNameCorrect_Test_GenerateName
The problem was the encode in `name += string(alphabet[])` It takes only 1 byte but the characters like 'รจ','@' are encoding on several bytes (1 to 4 bytes). The better solution was to create a slice of string, like this we don't have problem about take only one byte instead of 2,3 or 4 bytes.
Diffstat (limited to 'test/bottin_test.go')
0 files changed, 0 insertions, 0 deletions