diff options
author | MrArmonius <mrarmonius@gmail.com> | 2021-07-26 15:36:45 +0200 |
---|---|---|
committer | MrArmonius <mrarmonius@gmail.com> | 2021-07-26 15:36:45 +0200 |
commit | a53641e773730ba171df2602c8d199968d6e6447 (patch) | |
tree | 4f34557bddea0482281b08d505b0789b44263952 /.gitignore | |
parent | 9a8c19ec0f9b2f09daab244a49c67904c5c086aa (diff) | |
download | bottin-a53641e773730ba171df2602c8d199968d6e6447.tar.gz bottin-a53641e773730ba171df2602c8d199968d6e6447.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 '.gitignore')
0 files changed, 0 insertions, 0 deletions