Files
cpp-course/modules/14_cpp26/test/custom_formatter_test.cpp
T

11 lines
265 B
C++

#include "custom_formatter.hpp"
#include <gtest/gtest.h>
TEST(CustomFormatter, FormatPoint) {
EXPECT_EQ(cpp26::format_point({3, 4}), "(3, 4)");
}
TEST(CustomFormatter, FormatPoints) {
EXPECT_EQ(cpp26::format_points({1, 2}, {3, 4}), "(1, 2) -> (3, 4)");
}