forked from BigfootDev/flatbuffers
templated type
This commit is contained in:
@@ -930,6 +930,10 @@ void NativeTypeTest() {
|
||||
Native::Vector3D(20 * i + 0.1f, 20 * i + 0.2f, 20 * i + 0.3f));
|
||||
}
|
||||
|
||||
src_data.tagged_a = Native::Tagged<Native::TagA>(7);
|
||||
src_data.tagged_b = Native::Tagged<Native::TagB>(8);
|
||||
src_data.pair_ab = Native::Pair<Native::TagA, Native::TagB>(9);
|
||||
|
||||
src_data.matrix = std::unique_ptr<Native::Matrix>(new Native::Matrix(1, 2));
|
||||
src_data.matrix->values = {3, 4};
|
||||
|
||||
@@ -951,6 +955,9 @@ void NativeTypeTest() {
|
||||
TEST_EQ(dstDataT->position_inline.x, 4.0f);
|
||||
TEST_EQ(dstDataT->position_inline.y, 5.0f);
|
||||
TEST_EQ(dstDataT->position_inline.z, 6.0f);
|
||||
TEST_EQ(dstDataT->tagged_a.value, 7);
|
||||
TEST_EQ(dstDataT->tagged_b.value, 8);
|
||||
TEST_EQ(dstDataT->pair_ab.value, 9);
|
||||
|
||||
for (int i = 0; i < N; ++i) {
|
||||
const Native::Vector3D& v = dstDataT->vectors[i];
|
||||
|
||||
Reference in New Issue
Block a user