MCPcopy Create free account
hub / github.com/bbc/audiowaveform / compare

Function compare

test/OptionHandlerTest.cpp:73–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72template<typename T>
73static void compare(
74 const std::vector<T>& test_data,
75 const std::vector<T>& ref_data)
76{
77 ASSERT_THAT(test_data.size(), Eq(ref_data.size()));
78
79 const auto size = test_data.size();
80
81 for (std::size_t i = 0; i != size; ++i) {
82 ASSERT_THAT(test_data[i], Eq(ref_data[i]));
83 }
84}
85
86//------------------------------------------------------------------------------
87

Callers 1

compareFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected