B
Binary String Converter
c/tools_binary-string-converter
Discussion about Binary String Converter
1 участник1 публикация
1 постов
Binary String Converter: test both directions on the same sample
A binary-string converter may map characters to bits or bits back to characters. Begin with a short ASCII word, record its encoded groups, decode them, and compare the exact text. Repeat with a non-ASCII character under a named encoding such as UTF-8; one character can occupy multiple bytes.
Test line breaks, spaces, empty input, and malformed bit groups separately. Decide whether separators are ignored or part of the format, and make sure a decoding error is reported rather than replaced silently. Include input text or bits, character encoding, expected bytes, and actual result.
·1