mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 17:33:57 +00:00
Added test for nested FlatBuffers functionality.
Also fixed that the parsing test wasn't calling the buffer testing function. Change-Id: I5baae071bf0832c7797b4ef1d19d9b015e3ff5bc Tested: on Linux.
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
test1: 3,
|
||||
test2: Green,
|
||||
test3: {
|
||||
a: 5,
|
||||
b: 6
|
||||
a: 10,
|
||||
b: 20
|
||||
}
|
||||
},
|
||||
hp: 80,
|
||||
@@ -17,7 +17,12 @@
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9
|
||||
],
|
||||
test_type: Monster,
|
||||
test: {
|
||||
@@ -34,8 +39,22 @@
|
||||
}
|
||||
],
|
||||
testarrayofstring: [
|
||||
"test1",
|
||||
"test2"
|
||||
"bob",
|
||||
"fred",
|
||||
"bob",
|
||||
"fred"
|
||||
],
|
||||
testarrayoftables: [
|
||||
{
|
||||
hp: 1000,
|
||||
name: "Barney"
|
||||
},
|
||||
{
|
||||
name: "Fred"
|
||||
},
|
||||
{
|
||||
name: "Wilma"
|
||||
}
|
||||
],
|
||||
testhashs32_fnv1: -579221183,
|
||||
testhashu32_fnv1: 3715746113,
|
||||
|
||||
Reference in New Issue
Block a user