MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / checkArrayEqual

Function checkArrayEqual

CesiumGltf/test/TestPropertyTablePropertyView.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template <typename T>
53static void
54checkArrayEqual(PropertyArrayView<T> arrayView, std::vector<T> expected) {
55 REQUIRE(arrayView.size() == static_cast<int64_t>(expected.size()));
56 for (int64_t i = 0; i < arrayView.size(); i++) {
57 REQUIRE(arrayView[i] == expected[static_cast<size_t>(i)]);
58 }
59}
60
61template <typename T> static void checkNumeric(const std::vector<T>& expected) {
62 std::vector<std::byte> data;

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected