From ccef771df482b5f34b95da3109d47eb92f5c09a7 Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Tue, 14 Jul 2026 14:27:27 +0200 Subject: [PATCH] [RF][HS3] Fix copy-paste error and typo in testRooFitHS3 --- roofit/hs3/test/testRooFitHS3.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roofit/hs3/test/testRooFitHS3.cxx b/roofit/hs3/test/testRooFitHS3.cxx index fbd3df6d33f20..03e2fd4dafda9 100644 --- a/roofit/hs3/test/testRooFitHS3.cxx +++ b/roofit/hs3/test/testRooFitHS3.cxx @@ -110,7 +110,7 @@ int validate(RooWorkspace &ws1, std::string const &argName, bool exact = true) x1->setBin(i); x2->setBin(i); const double val1 = r1->getVal(nset1); - const double val2 = r1->getVal(nset2); + const double val2 = r2->getVal(nset2); allGood &= (exact ? (val1 == val2) : std::abs(val1 - val2) < 1e-10); } @@ -1163,25 +1163,25 @@ TEST(RooFitHS3, RegisterExporterByClassName) // 1. Add new exporter by class pointer with top priority. // We expect this to get used. - registerExporter>(klass, /*topPriotiry=*/true); + registerExporter>(klass, /*topPriority=*/true); RooJSONFactoryWSTool{ws}.exportJSONtoString(); EXPECT_EQ(TestExporter<1>::callCounter()--, 1); // 2. Add new exporter by class pointer with bottom priority. // We expect the previous TestExporter<1> to still be used. - registerExporter>(klass, /*topPriotiry=*/false); + registerExporter>(klass, /*topPriority=*/false); RooJSONFactoryWSTool{ws}.exportJSONtoString(); EXPECT_EQ(TestExporter<1>::callCounter()--, 1); // 3. Add new exporter by name with top priority. // We expect this to get used. - registerExporter>(std::string{className}, /*topPriotiry=*/true); + registerExporter>(std::string{className}, /*topPriority=*/true); RooJSONFactoryWSTool{ws}.exportJSONtoString(); EXPECT_EQ(TestExporter<3>::callCounter()--, 1); // 4. Add new exporter by name with bottom priority. // We expect the previous TestExporter<3> to still be used. - registerExporter>(std::string{className}, /*topPriotiry=*/false); + registerExporter>(std::string{className}, /*topPriority=*/false); RooJSONFactoryWSTool{ws}.exportJSONtoString(); EXPECT_EQ(TestExporter<3>::callCounter()--, 1);