testtype: extend

This commit is contained in:
Michael Davidsaver
2026-02-22 15:28:54 +00:00
parent d9a87aa786
commit 70547d1481
+11 -3
View File
@@ -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();