mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 05:27:24 +00:00
Made "field set more than once" check in JSON parser faster.
Change-Id: I3ecc1aa610526c270faa56cc5266f14cd81db247 Tested: on Linux.
This commit is contained in:
@@ -490,7 +490,7 @@ void ErrorTest() {
|
||||
TestError("union Z { X } struct X { Y:int; }", "only tables");
|
||||
TestError("table X { Y:[int]; YLength:int; }", "clash");
|
||||
TestError("table X { Y:string = 1; }", "scalar");
|
||||
TestError("table X { Y:byte; } root_type X; { Y:1, Y:2 }", "already set");
|
||||
TestError("table X { Y:byte; } root_type X; { Y:1, Y:2 }", "more than once");
|
||||
}
|
||||
|
||||
// Additional parser testing not covered elsewhere.
|
||||
|
||||
Reference in New Issue
Block a user