@@ -30,8 +30,8 @@ void run_on_all_variants(
30
30
{
31
31
WHEN (" Not stripping, not removing empty" )
32
32
{
33
- std::vector<std::string> result;
34
- split_string (string, delimiter, result , false , false );
33
+ std::vector<std::string> result =
34
+ split_string (string, delimiter, false , false );
35
35
36
36
THEN (" Should get expected vector" )
37
37
{
@@ -44,8 +44,8 @@ void run_on_all_variants(
44
44
}
45
45
WHEN (" Not stripping, removing empty" )
46
46
{
47
- std::vector<std::string> result;
48
- split_string (string, delimiter, result , false , true );
47
+ std::vector<std::string> result =
48
+ split_string (string, delimiter, false , true );
49
49
50
50
THEN (" Should get expected vector" )
51
51
{
@@ -58,8 +58,8 @@ void run_on_all_variants(
58
58
}
59
59
WHEN (" Stripping, not removing empty" )
60
60
{
61
- std::vector<std::string> result;
62
- split_string (string, delimiter, result , true , false );
61
+ std::vector<std::string> result =
62
+ split_string (string, delimiter, true , false );
63
63
64
64
THEN (" Should get expected vector" )
65
65
{
@@ -72,8 +72,8 @@ void run_on_all_variants(
72
72
}
73
73
WHEN (" Stripping and removing empty" )
74
74
{
75
- std::vector<std::string> result;
76
- split_string (string, delimiter, result, true , true );
75
+ std::vector<std::string> result =
76
+ split_string (string, delimiter, true , true );
77
77
78
78
THEN (" Should get expected vector" )
79
79
{
@@ -141,8 +141,8 @@ SCENARIO("split_string", "[core][utils][string_utils][split_string]")
141
141
142
142
WHEN (" Not stripping, not removing empty" )
143
143
{
144
- std::vector<std::string> result;
145
- split_string (string, delimiter, result , false , false );
144
+ std::vector<std::string> result =
145
+ split_string (string, delimiter, false , false );
146
146
147
147
THEN (" Should get expected vector" )
148
148
{
@@ -154,8 +154,8 @@ SCENARIO("split_string", "[core][utils][string_utils][split_string]")
154
154
}
155
155
WHEN (" Not stripping, removing empty" )
156
156
{
157
- std::vector<std::string> result;
158
- split_string (string, delimiter, result , false , true );
157
+ std::vector<std::string> result =
158
+ split_string (string, delimiter, false , true );
159
159
160
160
THEN (" Should get expected vector" )
161
161
{
0 commit comments