remove straying tabs on line end (no functional change)

此提交包含在:
2019-10-02 21:53:32 +02:00
父節點 4de7236aca
當前提交 ad6fb8d731
共有 5 個檔案被更改,包括 18 行新增18 行删除

查看文件

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