mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 09:51:12 +00:00
Fix conform (#7532)
* Fix conform; Make sure the command fails when tail fields are removed; * Fix last commit according to dbaileychess' comment
This commit is contained in:
parent
bc44fad352
commit
bfceebb7fb
2 changed files with 22 additions and 4 deletions
|
|
@ -98,6 +98,8 @@ void ConformTest() {
|
|||
test_conform(parser, "table T { B:float; }",
|
||||
"field renamed to different type");
|
||||
test_conform(parser, "enum E:byte { B, A }", "values differ for enum");
|
||||
test_conform(parser, "table T { }", "field deleted");
|
||||
test_conform(parser, "table T { B:int; }", ""); //renaming a field is allowed
|
||||
}
|
||||
|
||||
void UnionDeprecationTest(const std::string& tests_data_path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue