remove straying tabs on line end (no functional change)
此提交包含在:
@ -33,25 +33,25 @@ TEST(Utils, hasKey) {
|
||||
ASSERT_FALSE(utils::hasKey(testmap, std::string { "testthere" }));
|
||||
ASSERT_FALSE(utils::hasKey(testmap, std::string { }));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
TEST(Utils, urldecode)
|
||||
{
|
||||
std::string testr1 = "abc123=23";
|
||||
std::string decoded = utils::urldecode(testr1);
|
||||
ASSERT_TRUE(testr1 == decoded);
|
||||
|
||||
|
||||
std::string testr2 = "a%20b";
|
||||
std::string decoded2 = utils::urldecode(testr2);
|
||||
std::string expected2 = "a b";
|
||||
ASSERT_TRUE(decoded2 == expected2);
|
||||
|
||||
|
||||
std::string testr3 = "a%";
|
||||
std::string expected3 = "a%";
|
||||
|
||||
|
||||
std::string decoded3 = utils::urldecode(testr3);
|
||||
ASSERT_TRUE(testr3 == expected3);
|
||||
|
||||
|
||||
}
|
||||
|
||||
TEST(UTILS, toUInt)
|
||||
@ -62,7 +62,7 @@ TEST(UTILS, toUInt)
|
||||
unsigned int actual = utils::toUInt(number);
|
||||
ASSERT_EQ(expected, actual);
|
||||
});
|
||||
|
||||
|
||||
ASSERT_THROW(utils::toUInt("abc"), std::invalid_argument);
|
||||
ASSERT_THROW(utils::toUInt("999999999999999999999"), std::out_of_range);
|
||||
|
||||
|
新增問題並參考
封鎖使用者