diff --git a/tree/ntuple/v7/test/ntuple_parallel_writer.cxx b/tree/ntuple/v7/test/ntuple_parallel_writer.cxx index 4bbd11427f4d6..4220a20a286a8 100644 --- a/tree/ntuple/v7/test/ntuple_parallel_writer.cxx +++ b/tree/ntuple/v7/test/ntuple_parallel_writer.cxx @@ -80,6 +80,20 @@ TEST(RNTupleParallelWriter, Basics) } } +TEST(RNTupleParallelWriter, Tokens) +{ + FileRaii fileGuard("test_ntuple_parallel_tokens.root"); + + auto model = RNTupleModel::CreateBare(); + model->MakeField("pt"); + auto token = model->GetToken("pt"); + + auto writer = RNTupleParallelWriter::Recreate(std::move(model), "f", fileGuard.GetPath()); + auto context = writer->CreateFillContext(); + auto entry = context->CreateEntry(); + auto pt = entry->GetPtr(token); +} + TEST(RNTupleParallelWriter, Staged) { FileRaii fileGuard("test_ntuple_parallel_staged.root");