[Discuss OpenCPI] Re: Unit testing with sequence property

From: <dwp_at_md1tech.co.uk>
Date: Thu, 01 Jun 23 09:28:40 +0000

I tried setting the different values of `frequencies` the test XML like this:

`<Case>`\
` <Property name='frequencies' values='{1}'/>`\
`</Case>`\
`<Case>`\
` <Property name='frequencies' values='{1, 2, 3}'/>`\
`</Case>`\
`<Case>`\
` <Property name='frequencies' values='{10, 10, 10, 10}'/>`\
`</Case>`

But still got the same error:

`` ocpigen: ../gen/runtime/base/src/BaseValue.cc:153: OCPI::Base::Value& OCPI::Base::Value::operator=(const OCPI::Base::Value&): Assertion `!v.m_parent' failed. ``

I also tried without the curly braces but got a different error:

`in value "1" (length of prop value is 1 chars): recursize type needs to be enclosed in {}`






Received on Thu Jun 01 2023 - 09:28:40 CDT

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT