• Evan Wallace's avatar
    Add a test for JavaScript UTF-8 <=> UTF-16 conversion · 57a6dd47
    Evan Wallace authored
    JavaScript uses UTF-16 but FlatBuffers uses UTF-8. This commit tests the code
    that does the conversion between the two encodings. The last entry in the array
    is tricky because each code point actually requires two UTF-16 code units,
    unlike the other examples. The current JSON output of flatc actually handles
    this case incorrectly (it generates invalid JSON with UTF-8 code units). The
    generated JavaScript code passes these tests fine, however.
    57a6dd47
Name
Last commit
Last update
CMake Loading commit data...
android Loading commit data...
biicode Loading commit data...
build Loading commit data...
docs Loading commit data...
go Loading commit data...
include/flatbuffers Loading commit data...
java Loading commit data...
js Loading commit data...
net/FlatBuffers Loading commit data...
python Loading commit data...
reflection Loading commit data...
samples Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
biicode.conf Loading commit data...
readme.md Loading commit data...