This commit is contained in:
2025-03-26 14:04:12 +08:00
parent 93f367dee9
commit 572479248d
3 changed files with 62 additions and 0 deletions

16
tests/test_2829.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include <gtest/gtest.h>
#include <solution/2829.h>
TEST(MinimumSumTest, Test1)
{
int n = 5, k = 4;
int expected = 18;
EXPECT_EQ(minimumSum(n, k), expected);
}
TEST(MinimumSumTest, Test2)
{
int n = 2, k = 6;
int expected = 3;
EXPECT_EQ(minimumSum(n, k), expected);
}