aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/tests/teststringutil.h
blob: cba15682d7e6018974797026d3ea5e1eba525f8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <cppunit/extensions/HelperMacros.h>

class StringUtil_Test : public CppUnit::TestFixture {
  CPPUNIT_TEST_SUITE( StringUtil_Test);
  CPPUNIT_TEST(test_escape);
  CPPUNIT_TEST(test_unescape);
  CPPUNIT_TEST(test_printAsHex);
  CPPUNIT_TEST_SUITE_END();

public:
  void setUp() override;

protected:
  void test_escape();
  void test_unescape();
  void test_printAsHex();

};