mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Fix SEGV in ostream_wrapper
This commit is contained in:
15
test/ostream_wrapper_test.cpp
Normal file
15
test/ostream_wrapper_test.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "yaml-cpp/ostream_wrapper.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace {
|
||||
class OstreamWrapperTest : public ::testing::Test {
|
||||
protected:
|
||||
};
|
||||
|
||||
// Tests that the Foo::Bar() method does Abc.
|
||||
TEST_F(OstreamWrapperTest, ConstructNoWrite) {
|
||||
YAML::ostream_wrapper wrapper;
|
||||
EXPECT_STREQ("", wrapper.str());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user