mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
extend user block fields check
This commit is contained in:
parent
0ad588fd33
commit
ab53922474
6 changed files with 63 additions and 13 deletions
|
|
@ -117,9 +117,9 @@ TEST(StructLayout, ConvertWithLoss) {
|
|||
|
||||
TEST(StructLayout, Serialization) {
|
||||
std::vector<Field> fields {
|
||||
Field {FieldType::CHAR, "text", 5},
|
||||
Field {FieldType::I16, "someint", 1},
|
||||
Field {FieldType::F64, "pi", 1},
|
||||
Field (FieldType::CHAR, "text", 5),
|
||||
Field (FieldType::I16, "someint", 1),
|
||||
Field (FieldType::F64, "pi", 1),
|
||||
};
|
||||
auto layout1 = StructLayout::create(fields);
|
||||
auto serialized = layout1.serialize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue