The Battle for Wesnoth  1.19.0-dev
Macros | Functions
test_serialization.cpp File Reference
#include <array>
#include <vector>
#include <string>
#include "serialization/base64.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/unicode.hpp"
#include <boost/test/unit_test.hpp>
Include dependency graph for test_serialization.cpp:

Go to the source code of this file.

Macros

#define GETTEXT_DOMAIN   "wesnoth-test"
 

Functions

static std::ostream & std::operator<< (std::ostream &str, const std::pair< const std::string, std::string > &p)
 
 BOOST_AUTO_TEST_CASE (utils_join_test)
 
 BOOST_AUTO_TEST_CASE (utils_split_test)
 
 BOOST_AUTO_TEST_CASE (utils_quoted_split_test)
 
 BOOST_AUTO_TEST_CASE (utils_map_split_test)
 
 BOOST_AUTO_TEST_CASE (utils_parenthetical_split_test)
 
 BOOST_AUTO_TEST_CASE (utils_square_parenthetical_split)
 
 BOOST_AUTO_TEST_CASE (utils_unicode_test)
 
 BOOST_AUTO_TEST_CASE (test_lowercase)
 
 BOOST_AUTO_TEST_CASE (test_wildcard_string_match)
 
 BOOST_AUTO_TEST_CASE (test_base64_encodings)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 16 of file test_serialization.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( test_base64_encodings  )

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( test_lowercase  )

Definition at line 539 of file test_serialization.cpp.

References utf8::lowercase().

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( test_wildcard_string_match  )

Definition at line 547 of file test_serialization.cpp.

References utils::wildcard_string_match().

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( utils_join_test  )

Definition at line 35 of file test_serialization.cpp.

References utils::join().

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( utils_map_split_test  )

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( utils_parenthetical_split_test  )

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( utils_quoted_split_test  )

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( utils_split_test  )

Definition at line 54 of file test_serialization.cpp.

References utils::REMOVE_EMPTY, utils::split(), and utils::STRIP_SPACES.

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( utils_square_parenthetical_split  )

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( utils_unicode_test  )

Definition at line 485 of file test_serialization.cpp.

References utf8::index(), utf8::size(), and utf8::truncate().

◆ operator<<()

static std::ostream& std::operator<< ( std::ostream &  str,
const std::pair< const std::string, std::string > &  p 
)
static

Definition at line 27 of file test_serialization.cpp.

References operator<<(), and p.