0

This is example of object singletone table which i trying to test:

{
      "rows": [{
          "account": "ins",
          "first_approve": {
            "first": "apk",
            "second": 1
          },
          "second_approve": {
            "first": "",
            "second": 0
          }
        }
      ],
      "more": false
}

Using testing library i try to check matching object:

REQUIRE_MATCHING_OBJECT(notary, mvo()("account", "ins")("first_approve", "")("second_approve", ""));

In which format i need add values to first_approve and second approve keys? Also am i correct using:

get_row_by_account(code,scope,table,acc)

For singletone table?

| improve this question | | | | |
0

You can pass variant_object to initialize the other variant_object.

For example,

auto fa_obj = mvo()("first", "apk")("second", 1);

REQUIRE_MATCHING_OBJECT(notary, mvo()("account", "ins")("first_approve", fa_obj)...
| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.