erick-alcachofa 4989ed8a4d
Solutions for the first 10 problems
Signed-off-by: erick-alcachofa <erick@artichoke.dev>
2025-08-05 01:11:13 -06:00

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);
}