mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
16 lines
424 B
C++
16 lines
424 B
C++
#include <Common/escapeForFileName.h>
|
|
|
|
#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("..::")), "..::");
|
|
}
|