We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb6710c commit b45d1adCopy full SHA for b45d1ad
test/test_value.cpp
@@ -36,6 +36,24 @@ void test_value() {
36
assert(node.size() == 1);
37
}
38
39
+ {
40
+ Hjson::Value node;
41
+ node["a"] = 1;
42
+ node["a2"] = 2;
43
44
+ Hjson::Value node2;
45
+ node2["b"] = node;
46
+ node2["c"] = "alfa";
47
+ node2["d"] = Hjson::Value(Hjson::Type::Undefined);
48
49
+ Hjson::Value root;
50
+ root["n"] = node2;
51
+ }
52
+ assert(node2.size() == 3);
53
54
+ assert(node.size() == 2);
55
56
+
57
{
58
Hjson::Value valVec(Hjson::Type::Vector);
59
assert(valVec.type() == Hjson::Type::Vector);
0 commit comments