1#include <Common/escapeForFileName.h>
2
3#include <gtest/gtest.h>
4
5
6using namespace DB;
7
8
9TEST(Common, unescapeForFileName)
10{
11 EXPECT_EQ(unescapeForFileName(escapeForFileName("172.19.0.6")), "172.19.0.6");
12 EXPECT_EQ(unescapeForFileName(escapeForFileName("abcd.")), "abcd.");
13 EXPECT_EQ(unescapeForFileName(escapeForFileName("abcd")), "abcd");
14 EXPECT_EQ(unescapeForFileName(escapeForFileName("..::")), "..::");
15}
16