Skip to content

Commit 3414e59

Browse files
committed
Don't use spaces in SerialIOTest attribute names
The JSON schema verification package does not like that
1 parent 30409b5 commit 3414e59

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/SerialIOTest.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,21 +2309,21 @@ inline void bool_test(const std::string &backend)
23092309
{
23102310
Series o = Series("../samples/serial_bool." + backend, Access::CREATE);
23112311

2312-
o.setAttribute("Bool attribute true", true);
2313-
o.setAttribute("Bool attribute false", false);
2312+
o.setAttribute("Bool_attribute_true", true);
2313+
o.setAttribute("Bool_attribute_false", false);
23142314
}
23152315
{
23162316
Series o =
23172317
Series("../samples/serial_bool." + backend, Access::READ_ONLY);
23182318

23192319
auto attrs = o.attributes();
23202320
REQUIRE(
2321-
std::count(attrs.begin(), attrs.end(), "Bool attribute true") == 1);
2321+
std::count(attrs.begin(), attrs.end(), "Bool_attribute_true") == 1);
23222322
REQUIRE(
2323-
std::count(attrs.begin(), attrs.end(), "Bool attribute false") ==
2323+
std::count(attrs.begin(), attrs.end(), "Bool_attribute_false") ==
23242324
1);
2325-
REQUIRE(o.getAttribute("Bool attribute true").get<bool>() == true);
2326-
REQUIRE(o.getAttribute("Bool attribute false").get<bool>() == false);
2325+
REQUIRE(o.getAttribute("Bool_attribute_true").get<bool>() == true);
2326+
REQUIRE(o.getAttribute("Bool_attribute_false").get<bool>() == false);
23272327
}
23282328
{
23292329
Series list{"../samples/serial_bool." + backend, Access::READ_ONLY};

0 commit comments

Comments
 (0)