MCPcopy Create free account
hub / github.com/cvanaret/Uno / TEST

Function TEST

unotest/unit_tests/SparseVectorTests.cpp:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace uno;
8
9TEST(SparseVector, Empty) {
10 SparseVector<double> x(2);
11 // x is empty: its size (number of elements) is 0
12 ASSERT_EQ(x.size(), 0);
13}
14
15TEST(SparseVector, Size) {
16 const size_t capacity = 3;

Callers

nothing calls this directly

Calls 3

insertMethod · 0.80
clearMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected