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:
Dorochi
2022-09-15 12:45:40 +08:00
committed by GitHub
parent bc44fad352
commit bfceebb7fb
2 changed files with 22 additions and 4 deletions

View File

@@ -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) {