Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions tree/ntuple/test/ntuple_show.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ TEST(RNTupleShow, Vectors)
std::ostringstream os;
ntuple2->Show(0, os);
// clang-format off
std::string fString{
std::string fString{
R"({
"intVec": [4, 5, 6],
"floatVecVec": [[0.1, 0.2], [1.1, 1.2]],
Expand Down Expand Up @@ -312,7 +312,7 @@ TEST(RNTupleShow, Objects)
std::ostringstream os;
ntuple2->Show(0, os);
// clang-format off
std::string fString{
std::string fString{
R"({
"CustomStruct": {
"a": 4.1,
Expand Down Expand Up @@ -642,24 +642,3 @@ R"({
// clang-format on
EXPECT_EQ(os1.str(), expected);
}

TEST(RNTupleShow, Friends)
{
FileRaii fileGuard1("test_ntuple_show_friends1.ntuple");
{
auto model = RNTupleModel::Create();
auto foo = model->MakeField<float>("foo");
auto writer = RNTupleWriter::Recreate(std::move(model), "ntpl1", fileGuard1.GetPath());
*foo = 3.14;
writer->Fill();
}

FileRaii fileGuard2("test_ntuple_show_friends2.ntuple");
{
auto model = RNTupleModel::Create();
auto bar = model->MakeField<float>("bar");
auto writer = RNTupleWriter::Recreate(std::move(model), "ntpl2", fileGuard2.GetPath());
*bar = 2.72;
writer->Fill();
}
}
Loading