Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
d61acc22
"docs/en_US/SearchSpaceSpec.md" did not exist on "f1c2b70b4baf7adcd489de88bf001a2e6a4c3599"
Commit
d61acc22
authored
May 22, 2019
by
Paul
Browse files
Formatting
parent
92801ac2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
test/literal_test.cpp
test/literal_test.cpp
+12
-11
No files found.
test/literal_test.cpp
View file @
d61acc22
...
...
@@ -108,14 +108,15 @@ TEST_CASE(literal_visit_all_mismatch_type)
migraphx
::
literal
x
{
s1
,
{
1
}};
migraphx
::
shape
s2
{
migraphx
::
shape
::
int8_type
,
{
1
}};
migraphx
::
literal
y
{
s2
,
{
1
}};
EXPECT
(
test
::
throws
<
migraphx
::
exception
>
([
&
]
{
migraphx
::
visit_all
(
x
,
y
)([
&
](
auto
,
auto
)
{});
}));
EXPECT
(
test
::
throws
<
migraphx
::
exception
>
([
&
]
{
migraphx
::
visit_all
(
x
,
y
)([
&
](
auto
,
auto
)
{});
}));
}
TEST_CASE
(
literal_visit_empty
)
{
migraphx
::
literal
x
{};
EXPECT
(
test
::
throws
([
&
]{
x
.
visit
([](
auto
){});
}));
EXPECT
(
test
::
throws
([
&
]{
x
.
visit_at
([](
auto
){});
}));
EXPECT
(
test
::
throws
([
&
]
{
x
.
visit
([](
auto
)
{});
}));
EXPECT
(
test
::
throws
([
&
]
{
x
.
visit_at
([](
auto
)
{});
}));
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
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