// This test program uses a test framework supporting TDD and BDD. // You are not required to use the framework, but encouraged to. // Code: // https://github.com/catchorg/Catch2 // Documentation: // https://github.com/catchorg/Catch2/blob/devel/docs/tutorial.md // You ARE however required to implement all test cases outlined here, // even if you do it by way of your own function for each case. You // are recommended to solve the cases in order, and rerun all tests // after you modify your code. #include "catch_amalgamated.hpp" //======================================================================= // Test cases //======================================================================= TEST_CASE( "Create an empty list" ) { Sorted_List l{}; REQUIRE( l.is_empty() == true ); REQUIRE( l.size() == 0 ); } // It is your job to create new test cases and fully test your Sorted_List class