mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 20:31:23 +00:00
flatc can now convert flatbuffer binary files into json.
Also removed it appending _wire to filenames, renamed the json golden file to .golden to not clash with generated files. Bug: 15781201 Change-Id: I8322861e50d1e5b6a5ab5e4b5e5d8ae13c356eb2 Tested: on Windows and Linux
This commit is contained in:
@@ -181,7 +181,7 @@ void ParseAndGenerateTextTest() {
|
||||
TEST_EQ(flatbuffers::LoadFile(
|
||||
"tests/monster_test.fbs", false, &schemafile), true);
|
||||
TEST_EQ(flatbuffers::LoadFile(
|
||||
"tests/monsterdata_test.json", false, &jsonfile), true);
|
||||
"tests/monsterdata_test.golden", false, &jsonfile), true);
|
||||
|
||||
// parse schema first, so we can use it to parse the data after
|
||||
flatbuffers::Parser parser;
|
||||
|
||||
Reference in New Issue
Block a user