44 WideString str
(L"Input String."
);
45 for (
wchar_t ch : str)
49 ASSERT_EQ(1, rtf_break->CountBreakPieces());
50 EXPECT_EQ(str
+ L"\n", rtf_break->GetBreakPieceUnstable(0)->GetString());
52 rtf_break->ClearBreakPieces();
54 EXPECT_EQ(0, rtf_break->GetCurrentLineForTesting()->GetLineEnd());
57 for (
wchar_t ch : str)
62 ASSERT_EQ(1, rtf_break->CountBreakPieces());
63 EXPECT_EQ(str, rtf_break->GetBreakPieceUnstable(0)->GetString());
80 rtf_break->SetLineBreakTolerance(1);
81 rtf_break->SetFontSize(12);
83 WideString input = WideString
::FromUTF8(ByteStringView(
"\xa\x0\xa\xa", 4));
84 for (
wchar_t ch : input)
85 rtf_break->AppendChar(ch);
87 std::vector<CFGAS_Char> chars =
88 rtf_break->GetCurrentLineForTesting()->m_LineChars;
89 CFGAS_Char::BidiLine(&chars, chars.size());
90 EXPECT_EQ(3u, chars.size());