MCPcopy Create free account
hub / github.com/davisking/dlib / another_array_test

Function another_array_test

dlib/test/array.cpp:607–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605 int whatever;
606 };
607 void another_array_test()
608 {
609 array<stuff> a;
610 a.resize(5);
611 a[0].whatever = 0;
612 stuff temp;
613 temp.whatever = 99;
614 a.push_back(temp);
615 DLIB_TEST(a.size() == 6);
616 DLIB_TEST(a[5].whatever == 99);
617
618 DLIB_TEST(dlib::is_array<array<stuff> >::value == true);
619 }
620
621 void test_array_split()
622 {

Callers 1

perform_testMethod · 0.85

Calls 3

resizeMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected