From 497330e85cc7209dace56b6011d479a6318edbdb Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 27 May 2024 13:34:21 -0400 Subject: [PATCH] main.cpp : Added object readv() tests to objectTest(). --- src/cwtest/main.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/cwtest/main.cpp b/src/cwtest/main.cpp index 65b9709..2faff49 100644 --- a/src/cwtest/main.cpp +++ b/src/cwtest/main.cpp @@ -362,10 +362,23 @@ cw::rc_t objectTest( const cw::object_t* cfg, const cw::object_t* args, int argc int a = 0; int b = 0; - + const cw::object_t* c = nullptr; + bool d,e,f; + o->getv("a",a,"b",b); printf("G: %i %i\n",a,b); + + o->readv("a",0,a, + "b",0,b, + "c",cw::kOptFl | cw::kListTId,c, + "d",0,d, + "e",0,e, + "f",0,f); + + printf("R: %i %i : %i %i %i\n",a,b,d,e,f); + + const unsigned bufN = 128; char buf[bufN];