~larryprice/libertine-scope/libertine-store-open-apps

« back to all changes in this revision

Viewing changes to tests/lib/libertine-scope/test_preview.cpp

merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  EXPECT_EQ(package.name, header.attribute_values()["title"].get_string());
38
38
  EXPECT_EQ(package.summary, header.attribute_values()["subtitle"].get_string());
39
39
  EXPECT_EQ(package.icon, header.attribute_values()["mascot"].get_string());
40
 
 
41
 
  auto attributes = header.attribute_values()["attributes"].get_array();
42
 
  ASSERT_EQ(1, attributes.size());
43
 
  EXPECT_EQ(package.render_rating(), attributes[0].get_dict()["value"].get_string());
44
40
}
45
41
 
46
42
 
135
131
  package.summary = "classic text editor";
136
132
  package.description = "this or emacs";
137
133
  package.icon = "file:///test/file.png";
138
 
  package.rating = 4.2;
139
134
  package.publisher = "Woody Boyd";
140
135
  package.website = "http://canonical.com/";
141
136
  package.license = "GPLv8+";