@@ -1240,9 +1240,9 @@ inline void dtype_test(
12401240 std::optional<std::string> activateTemplateMode = {})
12411241{
12421242 bool test_long_double =
1243- (backend != " json" && backend != " toml " ) || sizeof (long double ) <= 8 ;
1243+ (backend != " json" || sizeof (long double ) <= 8 ) && backend != " toml " ;
12441244 bool test_long_long =
1245- (backend != " json" && backend != " toml " ) || sizeof (long long ) <= 8 ;
1245+ (backend != " json" || sizeof (long long ) <= 8 ) && backend != " toml " ;
12461246 {
12471247 Series s = activateTemplateMode.has_value ()
12481248 ? Series (
@@ -1437,7 +1437,10 @@ inline void dtype_test(
14371437 REQUIRE (s.getAttribute (" short" ).dtype == Datatype::SHORT);
14381438 REQUIRE (s.getAttribute (" int" ).dtype == Datatype::INT);
14391439 REQUIRE (s.getAttribute (" long" ).dtype == Datatype::LONG);
1440- REQUIRE (s.getAttribute (" longlong" ).dtype == Datatype::LONGLONG);
1440+ if (test_long_long)
1441+ {
1442+ REQUIRE (s.getAttribute (" longlong" ).dtype == Datatype::LONGLONG);
1443+ }
14411444 REQUIRE (s.getAttribute (" ushort" ).dtype == Datatype::USHORT);
14421445 REQUIRE (s.getAttribute (" uint" ).dtype == Datatype::UINT);
14431446 REQUIRE (s.getAttribute (" ulong" ).dtype == Datatype::ULONG);
@@ -1449,7 +1452,10 @@ inline void dtype_test(
14491452 REQUIRE (s.getAttribute (" vecShort" ).dtype == Datatype::VEC_SHORT);
14501453 REQUIRE (s.getAttribute (" vecInt" ).dtype == Datatype::VEC_INT);
14511454 REQUIRE (s.getAttribute (" vecLong" ).dtype == Datatype::VEC_LONG);
1452- REQUIRE (s.getAttribute (" vecLongLong" ).dtype == Datatype::VEC_LONGLONG);
1455+ if (test_long_long)
1456+ {
1457+ REQUIRE (s.getAttribute (" vecLongLong" ).dtype == Datatype::VEC_LONGLONG);
1458+ }
14531459 REQUIRE (s.getAttribute (" vecUShort" ).dtype == Datatype::VEC_USHORT);
14541460 REQUIRE (s.getAttribute (" vecUInt" ).dtype == Datatype::VEC_UINT);
14551461 REQUIRE (s.getAttribute (" vecULong" ).dtype == Datatype::VEC_ULONG);
0 commit comments