1 #ifndef TEST_OUROBORUS_H 2 #define TEST_OUROBORUS_H 11 #include "ouroboros.h" 15 void test_ouroboros() {
17 std::vector<int> test_data { 1, 2, 3, 4, 5, 6 };
18 std::vector<int> test_data_2 { 0, 0, 0, 0 };
20 ouroborus<int> tester( 10 );
21 tester.TailInsert( test_data.data(), test_data.size() );
22 tester.TailInsert( test_data.data(), test_data.size() );
23 tester.TailInsert( test_data_2.data(), test_data_2.size() );
25 auto tail_read_test = tester.TailRead( 3 );
27 for (
const auto& elem: tail_read_test ) {
28 std::cout << elem <<
",";
30 std::cout << std::endl;
32 std::cout << tester << std::endl;
38 #endif // TEST_OUROBORUS_H