Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dlib/test/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ namespace

wstring ws = L"file.txt";
DLIB_TEST( (left_substr(ws,wstring(L".")) == L"file"));
DLIB_TEST_MSG( (left_substr(ws,L".") == L"file"), L"");
DLIB_TEST_MSG( (left_substr(ws,L".") == L"file"), "");
DLIB_TEST( (right_substr(ws,wstring(L".")) == L"txt"));
DLIB_TEST_MSG( (right_substr(ws,L".") == L"txt"), L"");
DLIB_TEST_MSG( (right_substr(ws,L".") == L"txt"), "");


dlog << LTRACE << 8;
Expand Down
8 changes: 4 additions & 4 deletions dlib/test/tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,10 @@ namespace
deserialize(loaded_test, in_stream);

std::vector<std::string> test_strings = {
u8"This is a test of the tokenisation process...\nimplemented in the Dlib library!", // English
u8"Ceci est un test du processus de\ntokenisation implémenté dans\nla bibliothèque Dlib!", // French
u8"Dette er en test af tokeniseringsprocessen implementeret i Dlib-biblioteket!", // Danish
u8"这是对Dlib库中实现的标记化过程的测试!" // Chinese
"This is a test of the tokenisation process...\nimplemented in the Dlib library!", // English
"Ceci est un test du processus de\ntokenisation implémenté dans\nla bibliothèque Dlib!", // French
"Dette er en test af tokeniseringsprocessen implementeret i Dlib-biblioteket!", // Danish
"这是对Dlib库中实现的标记化过程的测试!" // Chinese
};

for (const auto& text : test_strings) {
Expand Down
Loading