KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_utf8.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <core/utf8.h>
#include <algorithm>
#include <iostream>

Go to the source code of this file.

Classes

struct  Utf8Fixture
 

Macros

#define UTF8_INIT   "This is a test of UTF-8: ü‱☺😕😱"
 

Functions

 BOOST_AUTO_TEST_CASE (Utf8AndStdString)
 Declares a struct as the Boost test fixture.
 
 BOOST_AUTO_TEST_CASE (Utf8AndWx)
 Check direct and copy construction from wxString.
 
 BOOST_AUTO_TEST_CASE (UniIterNull)
 UTF8::uni_iter null tests.
 
 BOOST_AUTO_TEST_CASE (UniIterIncrement)
 UTF8::uni_iter increment tests.
 

Macro Definition Documentation

◆ UTF8_INIT

#define UTF8_INIT   "This is a test of UTF-8: ü‱☺😕😱"

Definition at line 31 of file test_utf8.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( UniIterIncrement  )

UTF8::uni_iter increment tests.

Definition at line 97 of file test_utf8.cpp.

References BOOST_CHECK().

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( UniIterNull  )

UTF8::uni_iter null tests.

Definition at line 81 of file test_utf8.cpp.

References BOOST_CHECK().

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( Utf8AndStdString  )

Declares a struct as the Boost test fixture.

Check direct and copy construction from std::string

Definition at line 46 of file test_utf8.cpp.

References UTF8_INIT.

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( Utf8AndWx  )

Check direct and copy construction from wxString.

Definition at line 64 of file test_utf8.cpp.

References UTF8_INIT.