• 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
..
FlatBuffers.Test Loading commit data...
MyGame Loading commit data...
prototest Loading commit data...
GoTest.sh Loading commit data...
JavaScriptTest.js Loading commit data...
JavaScriptTest.sh Loading commit data...
JavaTest.bat Loading commit data...
JavaTest.java Loading commit data...
JavaTest.sh Loading commit data...
PythonTest.sh Loading commit data...
generate_code.sh Loading commit data...
go_test.go Loading commit data...
include_test1.fbs Loading commit data...
include_test2.fbs Loading commit data...
monster_test.bfbs Loading commit data...
monster_test.fbs Loading commit data...
monster_test_generated.h Loading commit data...
monster_test_generated.js Loading commit data...
monsterdata_python_wire.mon Loading commit data...
monsterdata_test.golden Loading commit data...
monsterdata_test.json Loading commit data...
monsterdata_test.mon Loading commit data...
py_test.py Loading commit data...
test.cpp Loading commit data...
unicode_test.json Loading commit data...