diff --git a/tests/generate_code.sh b/tests/generate_code.sh index 4b6db29b8..6e5d10bd6 100755 --- a/tests/generate_code.sh +++ b/tests/generate_code.sh @@ -15,6 +15,7 @@ # limitations under the License. ../flatc --cpp --java --csharp --go --binary --python --js --ts --php --grpc --gen-mutable --reflect-names --gen-object-api --no-includes --cpp-ptr-type flatbuffers::unique_ptr --no-fb-import -I include_test monster_test.fbs monsterdata_test.json +../flatc -b --prefix-size -I include_test monster_test_ps.fbs monsterdata_test.json ../flatc --cpp --java --csharp --go --binary --python --js --ts --php --gen-mutable --reflect-names --no-fb-import --cpp-ptr-type flatbuffers::unique_ptr -o namespace_test namespace_test/namespace_test1.fbs namespace_test/namespace_test2.fbs ../flatc --cpp --js --ts --php --gen-mutable --reflect-names --gen-object-api --cpp-ptr-type flatbuffers::unique_ptr -o union_vector ./union_vector/union_vector.fbs ../flatc -b --schema --bfbs-comments -I include_test monster_test.fbs diff --git a/tests/monster_test_ps.fbs b/tests/monster_test_ps.fbs new file mode 100755 index 000000000..e587c5b09 --- /dev/null +++ b/tests/monster_test_ps.fbs @@ -0,0 +1,10 @@ +// similar schema, except to be parsed with --prefix-size + +include "monster_test.fbs"; + +namespace MyGame.Example; + +root_type Monster; + +file_identifier "MONS"; +file_extension "mops"; diff --git a/tests/monsterdata_test.mops b/tests/monsterdata_test.mops new file mode 100644 index 000000000..b60881ad9 Binary files /dev/null and b/tests/monsterdata_test.mops differ