score->pass = score->score != 0;
}
-struct ccanlint has_examples = {
+struct ccanlint examples_exist = {
.key = "examples_exist",
.name = "_info and main header file have Example: sections",
.check = extract_examples,
+ .needs = "info_exists"
};
-REGISTER_TEST(has_examples, &has_info, NULL);
+REGISTER_TEST(examples_exist);