This commit is contained in:
24
tests/s0012_integer_to_roman.cpp
Normal file
24
tests/s0012_integer_to_roman.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "s0012_integer_to_roman.hpp"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(Problem12, Case1) {
|
||||
int i{3};
|
||||
string o("III");
|
||||
Solution solution;
|
||||
EXPECT_EQ(solution.intToRoman(i), o);
|
||||
}
|
||||
|
||||
TEST(Problem12, Case2) {
|
||||
int i{58};
|
||||
string o("LVIII");
|
||||
Solution solution;
|
||||
EXPECT_EQ(solution.intToRoman(i), o);
|
||||
}
|
||||
|
||||
TEST(Problem12, Case3) {
|
||||
int i{1994};
|
||||
string o("MCMXCIV");
|
||||
Solution solution;
|
||||
EXPECT_EQ(solution.intToRoman(i), o);
|
||||
}
|
Reference in New Issue
Block a user