testtype: extend
This commit is contained in:
+11
-3
@@ -492,8 +492,16 @@ void testOp()
|
||||
Value top(neckBolt());
|
||||
top["scalar.choice->one"] = 42;
|
||||
|
||||
(void)top.cloneEmpty();
|
||||
(void)top.clone();
|
||||
{
|
||||
auto empty(top.cloneEmpty());
|
||||
testFalse(empty.isMarked(true, true));
|
||||
}
|
||||
{
|
||||
auto clone(top.clone());
|
||||
testTrue(clone["scalar.choice"].isMarked());
|
||||
clone["scalar.choice->one"] = 43;
|
||||
}
|
||||
testEq(top["scalar.choice->one"].as<int32_t>(), 42);
|
||||
}
|
||||
|
||||
void testFormat()
|
||||
@@ -663,7 +671,7 @@ void testAppendBig()
|
||||
|
||||
MAIN(testtype)
|
||||
{
|
||||
testPlan(71);
|
||||
testPlan(74);
|
||||
testSetup();
|
||||
showSize();
|
||||
testCode();
|
||||
|
||||
Reference in New Issue
Block a user