ClickHouse/src/Common/tests/gtest_unescapeForFileName.cpp

16 lines
424 B
C++
Raw Normal View History

#include <Common/escapeForFileName.h>
2017-11-24 20:40:14 +00:00
#include <gtest/gtest.h>
using namespace DB;
TEST(Common, unescapeForFileName)
{
EXPECT_EQ(unescapeForFileName(escapeForFileName("172.19.0.6")), "172.19.0.6");
EXPECT_EQ(unescapeForFileName(escapeForFileName("abcd.")), "abcd.");
EXPECT_EQ(unescapeForFileName(escapeForFileName("abcd")), "abcd");
EXPECT_EQ(unescapeForFileName(escapeForFileName("..::")), "..::");
}