From 490f59ca55e7d1777732ddb43dc711ab1fce72e4 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 26 Sep 2022 09:49:31 -0700 Subject: [PATCH] update testtype --- test/testtype.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/testtype.cpp b/test/testtype.cpp index 8665e07..d57834b 100644 --- a/test/testtype.cpp +++ b/test/testtype.cpp @@ -221,14 +221,14 @@ void testTypeDef() { auto fld = val["arbitrary.sarr"]; shared_array arr(3); - arr[0] = fld.allocMember(); + arr[0] = fld.allocMember().update("value", 1.0); arr[1] = fld.allocMember(); - // leave [2] as null - arr[0]["value"] = 1.0; arr[1]["value"] = 2.0; + // leave [2] as null - fld = arr.freeze().castTo(); + fld = arr.freeze(); + testEq(val["arbitrary.sarr[0].value"].as(), 1.0); testEq(val["arbitrary.sarr[1].value"].as(), 2.0); } @@ -520,7 +520,7 @@ void testFormat() MAIN(testtype) { - testPlan(51); + testPlan(52); testSetup(); showSize(); testCode();