mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting
This commit is contained in:
@@ -95,7 +95,7 @@ class EncodingTest : public HandlerTest {
|
||||
void Run() {
|
||||
InSequence sequence;
|
||||
EXPECT_CALL(handler, OnDocumentStart(_));
|
||||
EXPECT_CALL(handler, OnSequenceStart(_, "?", 0));
|
||||
EXPECT_CALL(handler, OnSequenceStart(_, "?", 0, EmitterStyle::Block));
|
||||
for (std::size_t i = 0; i < m_entries.size(); i++) {
|
||||
EXPECT_CALL(handler, OnScalar(_, "!", 0, m_entries[i]));
|
||||
}
|
||||
|
Reference in New Issue
Block a user