29 lines
606 B
C++
29 lines
606 B
C++
/*
|
|
* Project Euler Solutions - Test File
|
|
* ------------------------------------
|
|
* Problem : Sum Square Difference
|
|
* URL : https://projecteuler.net/problem=6
|
|
*
|
|
* Author : erick-alcachofa
|
|
* Created : Monday, August 04 2025
|
|
*
|
|
* Notes:
|
|
* -
|
|
*
|
|
* License : GNU Affero General Public License v3.0 (AGPLv3)
|
|
* https://www.gnu.org/licenses/agpl-3.0.html
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <sstream>
|
|
|
|
#include "impl.hpp"
|
|
|
|
const char *input = R"(@example@)";
|
|
|
|
TEST(Problem6, test) {
|
|
const auto ans = Solve(std::stringstream{input});
|
|
EXPECT_EQ(ans, 2640);
|
|
}
|