|
13 | 13 | using namespace string19; |
14 | 14 |
|
15 | 15 | TEST(Rope, joinEmpty) { |
16 | | - constexpr auto rope = Seperator{','}.join(); |
| 16 | + constexpr auto rope = Separator{','}.join(); |
17 | 17 | constexpr auto N = ropeCount(rope); |
18 | 18 | constexpr auto store = ropeStore<N>(rope); |
19 | 19 | static_assert(viewStore(store) == viewLiteral("")); |
20 | 20 | EXPECT_EQ(store, storeLiteral("")); |
21 | 21 | } |
22 | 22 |
|
23 | 23 | TEST(Rope, joinChar) { |
24 | | - constexpr auto rope = Seperator{','}.join('1', '2', '3'); |
| 24 | + constexpr auto rope = Separator{','}.join('1', '2', '3'); |
25 | 25 | constexpr auto N = ropeCount(rope); |
26 | 26 | constexpr auto store = ropeStore<N>(rope); |
27 | 27 | static_assert(viewStore(store) == viewLiteral("1,2,3")); |
28 | 28 | EXPECT_EQ(store, storeLiteral("1,2,3")); |
29 | 29 | } |
30 | 30 |
|
31 | 31 | TEST(Rope, joinView) { |
32 | | - constexpr auto rope = Seperator{viewLiteral(", ")}.join(viewLiteral("1"), '2', '3'); |
| 32 | + constexpr auto rope = Separator{viewLiteral(", ")}.join(viewLiteral("1"), '2', '3'); |
33 | 33 | constexpr auto N = ropeCount(rope); |
34 | 34 | constexpr auto store = ropeStore<N>(rope); |
35 | 35 | static_assert(viewStore(store) == viewLiteral("1, 2, 3")); |
36 | 36 | EXPECT_EQ(store, storeLiteral("1, 2, 3")); |
37 | 37 | } |
38 | 38 |
|
39 | 39 | TEST(Rope, joinDecimal) { |
40 | | - constexpr auto rope = Seperator{viewLiteral(", ")}.join(decimal<1>, decimal<-2>, decimal<3>); |
| 40 | + constexpr auto rope = Separator{viewLiteral(", ")}.join(decimal<1>, decimal<-2>, decimal<3>); |
41 | 41 | constexpr auto N = ropeCount(rope); |
42 | 42 | constexpr auto store = ropeStore<N>(rope); |
43 | 43 | static_assert(viewStore(store) == viewLiteral("1, -2, 3")); |
|
0 commit comments