Skip to content

Commit 2afc829

Browse files
committed
No need to specify format in TGraph::SaveAs tests
1 parent 9eec448 commit 2afc829

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

hist/hist/test/test_TGraph_SaveAs.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ TEST(TGraphsa, SaveGraphAsCSV)
2626

2727
gr.SaveAs("graph.csv");
2828

29-
auto gr1 = new TGraph("graph.csv", "%lg,%lg");
29+
auto gr1 = new TGraph("graph.csv", "");
3030
EXPECT_EQ(gr1->GetN(), NP);
3131

3232
for (int n = 0; n < NP; ++n) {
@@ -42,7 +42,7 @@ TEST(TGraphsa, SaveGraphAsTSV)
4242

4343
gr.SaveAs("graph.tsv");
4444

45-
auto gr1 = new TGraph("graph.tsv", "%lg\t%lg");
45+
auto gr1 = new TGraph("graph.tsv", "");
4646
EXPECT_EQ(gr1->GetN(), NP);
4747

4848
for (int n = 0; n < NP; ++n) {
@@ -57,7 +57,7 @@ TEST(TGraphsa, SaveGraphAsTXT)
5757

5858
gr.SaveAs("graph.txt");
5959

60-
auto gr1 = new TGraph("graph.txt", "%lg %lg");
60+
auto gr1 = new TGraph("graph.txt", "");
6161
EXPECT_EQ(gr1->GetN(), NP);
6262

6363
for (int n = 0; n < NP; ++n) {
@@ -72,7 +72,7 @@ TEST(TGraphsa, SaveGraphErrorsAsCSV)
7272

7373
gr.SaveAs("grapherrors.csv", "asroot"); // << asroot important for order of values
7474

75-
auto gr1 = new TGraphErrors("grapherrors.csv", "%lg,%lg,%lg,%lg");
75+
auto gr1 = new TGraphErrors("grapherrors.csv", "");
7676
EXPECT_EQ(gr1->GetN(), NP);
7777

7878
for (int n = 0; n < NP; ++n) {
@@ -90,7 +90,7 @@ TEST(TGraphsa, SaveGraphErrorsAsTSV)
9090

9191
gr.SaveAs("grapherrors.tsv", "asroot"); // << asroot important for order of values
9292

93-
auto gr1 = new TGraphErrors("grapherrors.tsv", "%lg\t%lg\t%lg\t%lg");
93+
auto gr1 = new TGraphErrors("grapherrors.tsv", "");
9494
EXPECT_EQ(gr1->GetN(), NP);
9595

9696
for (int n = 0; n < NP; ++n) {
@@ -107,7 +107,7 @@ TEST(TGraphsa, SaveGraphErrorsAsTXT)
107107

108108
gr.SaveAs("grapherrors.txt", "asroot"); // << asroot important for order of values
109109

110-
auto gr1 = new TGraphErrors("grapherrors.txt", "%lg %lg %lg %lg");
110+
auto gr1 = new TGraphErrors("grapherrors.txt", "");
111111
EXPECT_EQ(gr1->GetN(), NP);
112112

113113
for (int n = 0; n < NP; ++n) {
@@ -125,7 +125,7 @@ TEST(TGraphsa, SaveGraphAsymmErrorsAsCSV)
125125

126126
gr.SaveAs("graphasymmrrors.csv", "asroot"); // << asroot important for order of values
127127

128-
auto gr1 = new TGraphAsymmErrors("graphasymmrrors.csv", "%lg,%lg,%lg,%lg,%lg,%lg");
128+
auto gr1 = new TGraphAsymmErrors("graphasymmrrors.csv", "");
129129
EXPECT_EQ(gr1->GetN(), NP);
130130

131131
for (int n = 0; n < NP; ++n) {
@@ -145,7 +145,7 @@ TEST(TGraphsa, SaveGraphAsymmErrorsAsTSV)
145145

146146
gr.SaveAs("graphasymmrrors.tsv", "asroot"); // << asroot important for order of values
147147

148-
auto gr1 = new TGraphAsymmErrors("graphasymmrrors.tsv", "%lg\t%lg\t%lg\t%lg\t%lg\t%lg");
148+
auto gr1 = new TGraphAsymmErrors("graphasymmrrors.tsv", "");
149149
EXPECT_EQ(gr1->GetN(), NP);
150150

151151
for (int n = 0; n < NP; ++n) {
@@ -164,7 +164,7 @@ TEST(TGraphsa, SaveGraphAsymmErrorsAsTXT)
164164

165165
gr.SaveAs("graphasymmrrors.txt", "asroot"); // << asroot important for order of values
166166

167-
auto gr1 = new TGraphAsymmErrors("graphasymmrrors.txt", "%lg %lg %lg %lg %lg %lg");
167+
auto gr1 = new TGraphAsymmErrors("graphasymmrrors.txt", "");
168168
EXPECT_EQ(gr1->GetN(), NP);
169169

170170
for (int n = 0; n < NP; ++n) {
@@ -183,7 +183,7 @@ TEST(TGraphsa, SaveGraphAsymmErrorsAsOnlyErrorsCSV)
183183

184184
gr.SaveAs("graphasymmrrors_reduce.csv", "asroot errors"); // << asroot important for order of values
185185

186-
auto gr1 = new TGraphErrors("graphasymmrrors_reduce.csv", "%lg,%lg,%lg,%lg");
186+
auto gr1 = new TGraphErrors("graphasymmrrors_reduce.csv", "");
187187
EXPECT_EQ(gr1->GetN(), NP);
188188

189189
for (int n = 0; n < NP; ++n) {

0 commit comments

Comments
 (0)