ClickHouse/dbms/Common/tests/gtest_unescapeForFileName.cpp
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

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("..::")), "..::");
}