36#include <wx/mstream.h>
52 fmt.
Print(
"(kicad_sch (version 20231120) (generator \"eeschema\")" );
53 fmt.
Print(
"(image (at 0 0)" );
55 const size_t imageSize = 2 * 1024 * 1024;
56 std::vector<uint8_t> fakeImage( imageSize, 0x42 );
58 wxMemoryOutputStream stream;
59 stream.Write( fakeImage.data(), fakeImage.size() );
90 const size_t longLen = 1100000;
91 std::string longValue( longLen,
'A' );
95 fmt.
Print(
"(kicad_sch (version 20231120)" );
96 fmt.
Print(
"(property \"Description\" %s (at 0 0 0))",
97 fmt.
Quotes( longValue ).c_str() );
104 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...