mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-09 06:30:54 +00:00
renamed flexbuffers::Type enum values TYPE_ -> FBT_ (#4761)
reason: TYPE_BOOL is a macro defined in some iOS build configurations.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
27ce09860a
commit
43944a0ab1
@@ -1858,7 +1858,7 @@ void FlexBuffersTest() {
|
||||
TEST_EQ(tvec3[2].AsInt8(), 3);
|
||||
TEST_EQ(map["bool"].AsBool(), true);
|
||||
auto tvecb = map["bools"].AsTypedVector();
|
||||
TEST_EQ(tvecb.ElementType(), flexbuffers::TYPE_BOOL);
|
||||
TEST_EQ(tvecb.ElementType(), flexbuffers::FBT_BOOL);
|
||||
TEST_EQ(map["foo"].AsUInt8(), 100);
|
||||
TEST_EQ(map["unknown"].IsNull(), true);
|
||||
auto mymap = map["mymap"].AsMap();
|
||||
|
||||
Reference in New Issue
Block a user