Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
23979bf3
Commit
23979bf3
authored
Aug 26, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update unit tests
parent
435b8476
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libcaf_core/test/message.cpp
libcaf_core/test/message.cpp
+1
-1
libcaf_core/test/sum_type.cpp
libcaf_core/test/sum_type.cpp
+2
-2
No files found.
libcaf_core/test/message.cpp
View file @
23979bf3
...
@@ -261,7 +261,7 @@ CAF_TEST(strings_to_string) {
...
@@ -261,7 +261,7 @@ CAF_TEST(strings_to_string) {
CAF_TEST
(
maps_to_string
)
{
CAF_TEST
(
maps_to_string
)
{
map
<
int
,
int
>
m1
{{
1
,
10
},
{
2
,
20
},
{
3
,
30
}};
map
<
int
,
int
>
m1
{{
1
,
10
},
{
2
,
20
},
{
3
,
30
}};
auto
msg1
=
make_message
(
move
(
m1
));
auto
msg1
=
make_message
(
move
(
m1
));
CAF_CHECK_EQUAL
(
to_string
(
msg1
),
"(
[(1, 10), (2, 20), (3, 30)]
)"
);
CAF_CHECK_EQUAL
(
to_string
(
msg1
),
"(
{1 = 10, 2 = 20, 3 = 30}
)"
);
}
}
CAF_TEST
(
tuples_to_string
)
{
CAF_TEST
(
tuples_to_string
)
{
...
...
libcaf_core/test/sum_type.cpp
View file @
23979bf3
...
@@ -233,7 +233,7 @@ CAF_TEST(unary visit) {
...
@@ -233,7 +233,7 @@ CAF_TEST(unary visit) {
x
=
string
{
"hello world"
};
x
=
string
{
"hello world"
};
CAF_CHECK_EQUAL
(
visit
(
stringify
,
x
),
"hello world"
);
CAF_CHECK_EQUAL
(
visit
(
stringify
,
x
),
"hello world"
);
x
=
map_type
{{
1
,
1
},
{
2
,
2
}};
x
=
map_type
{{
1
,
1
},
{
2
,
2
}};
CAF_CHECK_EQUAL
(
visit
(
stringify
,
x
),
"
[(1, 1), (2, 2)]
"
);
CAF_CHECK_EQUAL
(
visit
(
stringify
,
x
),
"
{1 = 1, 2 = 2}
"
);
}
}
CAF_TEST
(
binary
visit
)
{
CAF_TEST
(
binary
visit
)
{
...
@@ -253,5 +253,5 @@ CAF_TEST(ternary visit) {
...
@@ -253,5 +253,5 @@ CAF_TEST(ternary visit) {
x
=
42
;
x
=
42
;
y
=
string
{
"foo"
};
y
=
string
{
"foo"
};
z
=
map_type
{{
1
,
1
},
{
2
,
2
}};
z
=
map_type
{{
1
,
1
},
{
2
,
2
}};
CAF_CHECK_EQUAL
(
visit
(
stringify
,
x
,
y
,
z
),
"42, foo,
[(1, 1), (2, 2)]
"
);
CAF_CHECK_EQUAL
(
visit
(
stringify
,
x
,
y
,
z
),
"42, foo,
{1 = 1, 2 = 2}
"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment