"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "c49b17e133b62fc1d0c2cb270d4820d49ed2e8cf"
Commit 234d6820 authored by umangyadav's avatar umangyadav
Browse files

add if_bool

parent dfb2f9d5
...@@ -61,6 +61,7 @@ TEST_CASE(value_construct_bool) ...@@ -61,6 +61,7 @@ TEST_CASE(value_construct_bool)
migraphx::value v = true; migraphx::value v = true;
EXPECT(v.is_bool()); EXPECT(v.is_bool());
EXPECT(v.get_bool() == true); EXPECT(v.get_bool() == true);
EXPECT(*v.if_bool() == true);
EXPECT(v.get_key().empty()); EXPECT(v.get_key().empty());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment