Fix a bug in config count unit test: count number of devices as well

This commit is contained in:
Yunsong Wang
2022-02-11 18:24:58 -05:00
parent 48d94259b4
commit af4c35d78b

View File

@@ -298,7 +298,9 @@ void test_get_config_count()
bench.add_string_axis("baz", {"str", "ing"}); // 2, 72
bench.add_string_axis("baz", {"single"}); // 1, 72
ASSERT_MSG(bench.get_config_count() == 72,
auto const num_devices = bench.get_devices().size();
ASSERT_MSG(bench.get_config_count() == 72 * num_devices,
"Got {}",
bench.get_config_count());
}