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
aab3016d
Commit
aab3016d
authored
Sep 23, 2018
by
Paul
Browse files
Formatting
parent
86e31c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/matcher.cpp
test/matcher.cpp
+3
-3
No files found.
test/matcher.cpp
View file @
aab3016d
...
...
@@ -258,7 +258,7 @@ void match_all_of()
auto
sum
=
p
.
add_instruction
(
sum_op
{},
one
,
two
);
p
.
add_instruction
(
pass_op
{},
sum
);
auto
m
=
matchers
::
name
(
"sum"
)(
matchers
::
all_of
(
matchers
::
arg
(
0
)(
matchers
::
name
(
"@literal"
)),
matchers
::
arg
(
1
)(
matchers
::
name
(
"@literal"
))));
matchers
::
arg
(
1
)(
matchers
::
name
(
"@literal"
))));
auto
r
=
find_match
(
p
,
m
);
EXPECT
(
bool
{
r
.
result
==
sum
});
}
...
...
@@ -271,7 +271,7 @@ void match_any_of()
auto
sum
=
p
.
add_instruction
(
sum_op
{},
one
,
two
);
p
.
add_instruction
(
pass_op
{},
sum
);
auto
m
=
matchers
::
name
(
"sum"
)(
matchers
::
any_of
(
matchers
::
arg
(
0
)(
matchers
::
name
(
"sum"
)),
matchers
::
arg
(
1
)(
matchers
::
name
(
"@literal"
))));
matchers
::
arg
(
1
)(
matchers
::
name
(
"@literal"
))));
auto
r
=
find_match
(
p
,
m
);
EXPECT
(
bool
{
r
.
result
==
sum
});
}
...
...
@@ -284,7 +284,7 @@ void match_none_of()
auto
sum
=
p
.
add_instruction
(
sum_op
{},
one
,
two
);
p
.
add_instruction
(
pass_op
{},
sum
);
auto
m
=
matchers
::
name
(
"sum"
)(
matchers
::
none_of
(
matchers
::
arg
(
0
)(
matchers
::
name
(
"sum"
)),
matchers
::
arg
(
1
)(
matchers
::
name
(
"sum"
))));
matchers
::
arg
(
1
)(
matchers
::
name
(
"sum"
))));
auto
r
=
find_match
(
p
,
m
);
EXPECT
(
bool
{
r
.
result
==
sum
});
}
...
...
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