mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 08:48:52 +00:00
[C++] Adds basic schema evolution tests (#5611)
* Added basic schema evolution tests * Add BUILD targets for evolution tests. Added to test/generate_code scripts * Use vector.front() instead of vector.data() * Added --scoped-enums option for evolution test
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
adbcbba5d1
commit
dda095023d
26
tests/evolution_test/evolution_v1.json
Normal file
26
tests/evolution_test/evolution_v1.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"a": 42,
|
||||
"b": true,
|
||||
"c_type": "TableB",
|
||||
"c": {
|
||||
"a": 15
|
||||
},
|
||||
"d": "King",
|
||||
"e": {
|
||||
"a": 3.1452,
|
||||
"b": 325
|
||||
},
|
||||
"f":{
|
||||
"a": 16,
|
||||
"b": 243.980943
|
||||
},
|
||||
"g": [ 7, 8, 9],
|
||||
"h": [
|
||||
{
|
||||
"a": 212
|
||||
},
|
||||
{
|
||||
"a": 459
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user