~stolowski/unity-scopes-api/result-for-key

« back to all changes in this revision

Viewing changes to test/gtest/scopes/Runtime/TestScope.cpp

  • Committer: Pawel Stolowski
  • Date: 2016-07-11 08:46:43 UTC
  • Revision ID: pawel.stolowski@canonical.com-20160711084643-awpexcxj7y8e3oob
Force cardinality of 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        // request for single result
54
54
        if (!query().result_key().empty())
55
55
        {
 
56
            EXPECT_EQ(1, search_metadata().cardinality());
56
57
            auto cat = reply->register_category("cat1", "Category 1", "");
57
58
            CategorisedResult res(cat);
58
59
            res.set_uri("uri");