@@ -102,7 +102,7 @@ TEST_SUBMODULE(builtin_casters, m) {
102102 } // 𝐀, utf16
103103 else {
104104 wstr.push_back ((wchar_t ) mathbfA32);
105- } // 𝐀, utf32
105+ } // 𝐀, utf32
106106 wstr.push_back (0x7a ); // z
107107
108108 m.def (" good_utf8_string" , []() {
@@ -111,10 +111,9 @@ TEST_SUBMODULE(builtin_casters, m) {
111111 m.def (" good_utf16_string" , [=]() {
112112 return std::u16string ({b16, ib16, cake16_1, cake16_2, mathbfA16_1, mathbfA16_2, z16});
113113 }); // b‽🎂𝐀z
114- m.def (" good_utf32_string" , [=]() {
115- return std::u32string ({a32, mathbfA32, cake32, ib32, z32});
116- }); // a𝐀🎂‽z
117- m.def (" good_wchar_string" , [=]() { return wstr; }); // a‽𝐀z
114+ m.def (" good_utf32_string" ,
115+ [=]() { return std::u32string ({a32, mathbfA32, cake32, ib32, z32}); }); // a𝐀🎂‽z
116+ m.def (" good_wchar_string" , [=]() { return wstr; }); // a‽𝐀z
118117 m.def (" bad_utf8_string" , []() {
119118 return std::string (" abc\xd0 "
120119 " def" );
@@ -124,9 +123,8 @@ TEST_SUBMODULE(builtin_casters, m) {
124123 // UnicodeDecodeError
125124 m.def (" bad_utf32_string" , [=]() { return std::u32string ({a32, char32_t (0xd800 ), z32}); });
126125 if (sizeof (wchar_t ) == 2 ) {
127- m.def (" bad_wchar_string" , [=]() {
128- return std::wstring ({wchar_t (0x61 ), wchar_t (0xd800 )});
129- });
126+ m.def (" bad_wchar_string" ,
127+ [=]() { return std::wstring ({wchar_t (0x61 ), wchar_t (0xd800 )}); });
130128 }
131129 m.def (" u8_Z" , []() -> char { return ' Z' ; });
132130 m.def (" u8_eacute" , []() -> char { return ' \xe9 ' ; });
@@ -243,8 +241,7 @@ TEST_SUBMODULE(builtin_casters, m) {
243241
244242 // test_int_convert
245243 m.def (" int_passthrough" , [](int arg) { return arg; });
246- m.def (
247- " int_passthrough_noconvert" , [](int arg) { return arg; }, py::arg{}.noconvert ());
244+ m.def (" int_passthrough_noconvert" , [](int arg) { return arg; }, py::arg{}.noconvert ());
248245
249246 // test_tuple
250247 m.def (
@@ -309,17 +306,15 @@ TEST_SUBMODULE(builtin_casters, m) {
309306
310307 // test_bool_caster
311308 m.def (" bool_passthrough" , [](bool arg) { return arg; });
312- m.def (
313- " bool_passthrough_noconvert" , [](bool arg) { return arg; }, py::arg{}.noconvert ());
309+ m.def (" bool_passthrough_noconvert" , [](bool arg) { return arg; }, py::arg{}.noconvert ());
314310
315311 // TODO: This should be disabled and fixed in future Intel compilers
316312#if !defined(__INTEL_COMPILER)
317313 // Test "bool_passthrough_noconvert" again, but using () instead of {} to construct py::arg
318314 // When compiled with the Intel compiler, this results in segmentation faults when importing
319315 // the module. Tested with icc (ICC) 2021.1 Beta 20200827, this should be tested again when
320316 // a newer version of icc is available.
321- m.def (
322- " bool_passthrough_noconvert2" , [](bool arg) { return arg; }, py::arg ().noconvert ());
317+ m.def (" bool_passthrough_noconvert2" , [](bool arg) { return arg; }, py::arg ().noconvert ());
323318#endif
324319
325320 // test_reference_wrapper
0 commit comments