leetcode/tests/s0012_integer_to_roman.cpp
2022-11-30 18:20:36 +08:00

25 lines
425 B
C++

#include "s0012_integer_to_roman.hpp"
#include <gtest/gtest.h>
TEST(Problem12, Case1) {
int i{3};
string o("III");
S0012 solution;
EXPECT_EQ(solution.intToRoman(i), o);
}
TEST(Problem12, Case2) {
int i{58};
string o("LVIII");
S0012 solution;
EXPECT_EQ(solution.intToRoman(i), o);
}
TEST(Problem12, Case3) {
int i{1994};
string o("MCMXCIV");
S0012 solution;
EXPECT_EQ(solution.intToRoman(i), o);
}