mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-07-02 05:35:11 +00:00
update parser (#5)
This commit is contained in:
@@ -163,11 +163,11 @@ ViewFilter = "Fatal"
|
||||
|
||||
auto table1 = config.GetDirect("newTableArray[0]");
|
||||
EXPECT_EQ(table1.GetType(), sdv::toml::ENodeType::node_table);
|
||||
EXPECT_TRUE(table1.GetName().empty());
|
||||
EXPECT_EQ(table1.GetName(), "newTableArray");
|
||||
|
||||
auto table2 = config.GetDirect("newTableArray[1]");
|
||||
EXPECT_EQ(table2.GetType(), sdv::toml::ENodeType::node_table);
|
||||
EXPECT_TRUE(table2.GetName().empty());
|
||||
EXPECT_EQ(table2.GetName(), "newTableArray");
|
||||
|
||||
config.Clear();
|
||||
appcontrol.Shutdown();
|
||||
@@ -770,6 +770,11 @@ ViewFilter = "Fatal"
|
||||
[j."ʞ".'l']
|
||||
)"));
|
||||
|
||||
EXPECT_FALSE(sdv::toml::CTOMLParser(u8R"(
|
||||
[ j . "ʞ" . 'l' ]
|
||||
["j".'ʞ'."l"]
|
||||
)"));
|
||||
|
||||
EXPECT_FALSE(sdv::toml::CTOMLParser(R"(
|
||||
[fruit]
|
||||
apple = "red"
|
||||
|
||||
Reference in New Issue
Block a user