10
10
#include " catch.hpp"
11
11
12
12
using iter::chain;
13
- using itertest::SolidInt;
14
13
using itertest::BasicIterable;
14
+ using itertest::SolidInt;
15
15
using Vec = const std::vector<char >;
16
16
17
17
TEST_CASE (" chain: three strings" , " [chain]" ) {
@@ -28,8 +28,8 @@ TEST_CASE("chain: three strings", "[chain]") {
28
28
29
29
TEST_CASE (" chain: const iteration" , " [chain][const]" ) {
30
30
std::string s1{" abc" };
31
- /* const */ std::string s2{" mno" };
32
- auto ch = chain (s1, s2, std::string{" xyz" });
31
+ const std::string s2{" mno" };
32
+ const auto ch = chain (s1, s2, std::string{" xyz" });
33
33
34
34
Vec v (std::begin (ch), std::end (ch));
35
35
Vec vc{' a' , ' b' , ' c' , ' m' , ' n' , ' o' , ' x' , ' y' , ' z' };
@@ -309,8 +309,8 @@ template <typename T>
309
309
using ImpT2 = decltype(chain.from_iterable(std::declval<T>()));
310
310
TEST_CASE (" chain.from_iterable: has correct ctor and assign ops" ,
311
311
" [chain.from_iterable]" ) {
312
- REQUIRE (itertest::IsMoveConstructibleOnly<ImpT2<std::vector<std::string>>>::
313
- value);
314
- REQUIRE (itertest::IsMoveConstructibleOnly<ImpT2<std::vector<std::string>&>>::
315
- value);
312
+ REQUIRE (itertest::IsMoveConstructibleOnly<
313
+ ImpT2<std::vector<std::string>>>:: value);
314
+ REQUIRE (itertest::IsMoveConstructibleOnly<
315
+ ImpT2<std::vector<std::string>&>>:: value);
316
316
}
0 commit comments