32#include <wx/mstream.h>
48 fmt.
Print(
"(kicad_sch (version 20231120) (generator \"eeschema\")" );
49 fmt.
Print(
"(image (at 0 0)" );
51 const size_t imageSize = 2 * 1024 * 1024;
52 std::vector<uint8_t> fakeImage( imageSize, 0x42 );
54 wxMemoryOutputStream stream;
55 stream.Write( fakeImage.data(), fakeImage.size() );
86 const size_t longLen = 1100000;
87 std::string longValue( longLen,
'A' );
91 fmt.
Print(
"(kicad_sch (version 20231120)" );
92 fmt.
Print(
"(property \"Description\" %s (at 0 0 0))",
93 fmt.
Quotes( longValue ).c_str() );
100 BOOST_CHECK_NO_THROW(
Is a LINE_READER that reads from a multiline 8 bit wide std::string.
char * ReadLine() override
Read a line of text into the buffer and increments the line number counter.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(PrettifyLargeImageData)
Verify that Prettify produces well-formed output for large (data ...) blocks such as base64-encoded i...