The Battle for Wesnoth  1.17.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

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 15 of file test_serialization.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( utils_join_test  )

Definition at line 34 of file test_serialization.cpp.

References utils::join().

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( utils_split_test  )

Definition at line 53 of file test_serialization.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( utils_quoted_split_test  )

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( utils_map_split_test  )

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( utils_parenthetical_split_test  )

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( utils_square_parenthetical_split  )

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( utils_unicode_test  )

Definition at line 484 of file test_serialization.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( test_lowercase  )

Definition at line 538 of file test_serialization.cpp.

References utf8::lowercase().

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( test_wildcard_string_match  )

Definition at line 546 of file test_serialization.cpp.

References utils::wildcard_string_match().

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( test_base64_encodings  )

◆ operator<<()

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

Definition at line 26 of file test_serialization.cpp.

References BOOST_AUTO_TEST_SUITE(), and p.