Skip to content

Commit 2e0c0bf

Browse files
committed
Don't use spaces in SerialIOTest attribute names
The JSON schema verification package does not like that
1 parent b65c54e commit 2e0c0bf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/SerialIOTest.cpp

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

2267-
o.setAttribute("Bool attribute true", true);
2268-
o.setAttribute("Bool attribute false", false);
2267+
o.setAttribute("Bool_attribute_true", true);
2268+
o.setAttribute("Bool_attribute_false", false);
22692269
}
22702270
{
22712271
Series o =
22722272
Series("../samples/serial_bool." + backend, Access::READ_ONLY);
22732273

22742274
auto attrs = o.attributes();
22752275
REQUIRE(
2276-
std::count(attrs.begin(), attrs.end(), "Bool attribute true") == 1);
2276+
std::count(attrs.begin(), attrs.end(), "Bool_attribute_true") == 1);
22772277
REQUIRE(
2278-
std::count(attrs.begin(), attrs.end(), "Bool attribute false") ==
2278+
std::count(attrs.begin(), attrs.end(), "Bool_attribute_false") ==
22792279
1);
2280-
REQUIRE(o.getAttribute("Bool attribute true").get<bool>() == true);
2281-
REQUIRE(o.getAttribute("Bool attribute false").get<bool>() == false);
2280+
REQUIRE(o.getAttribute("Bool_attribute_true").get<bool>() == true);
2281+
REQUIRE(o.getAttribute("Bool_attribute_false").get<bool>() == false);
22822282
}
22832283
{
22842284
Series list{"../samples/serial_bool." + backend, Access::READ_ONLY};

0 commit comments

Comments
 (0)