#include #include #include #include Test(unique_string, simple) { misc::unique the_answer = std::string("skibidi"); misc::unique the_same_answer = std::string("skibidi"); misc::unique the_solution = std::string("yes yes"); cr_expect_eq(the_answer, misc::unique(std::string("skibidi"))); cr_expect_eq(the_answer, the_same_answer); cr_expect_neq(the_answer, the_solution); cr_expect_eq(the_answer.get(), the_same_answer.get()); cr_expect_eq(the_answer.get(), misc::unique(std::string("skibidi")).get()); cr_expect_neq(the_answer.get(), the_solution.get()); }