Commit 7639c280 authored by Umang Yadav's avatar Umang Yadav
Browse files

use float equal

parent 4e9d51f0
......@@ -198,5 +198,9 @@ TEST_CASE(test_numeric_lowest_2)
EXPECT(fp8_lowest == std::numeric_limits<migraphx_fp8::fp8e4m3fn>::lowest());
}
TEST_CASE(test_max_eq_lowest) {}
TEST_CASE(test_max_eq_lowest)
{
EXPECT(migraphx::float_equal(std::numeric_limits<migraphx_fp8::fp8e4m3fn>::lowest(),
-1 * std::numeric_limits<migraphx_fp8::fp8e4m3fn>::max()));
}
int main(int argc, const char* argv[]) { test::run(argc, argv); }
......@@ -222,4 +222,9 @@ TEST_CASE(test_numeric_lowest_2)
EXPECT(fp8_lowest == std::numeric_limits<migraphx_fp8::fp8e4m3fnuz>::lowest());
}
TEST_CASE(test_max_eq_lowest)
{
EXPECT(migraphx::float_equal(std::numeric_limits<migraphx_fp8::fp8e4m3fnuz>::lowest(),
-1 * std::numeric_limits<migraphx_fp8::fp8e4m3fnuz>::max()));
}
int main(int argc, const char* argv[]) { test::run(argc, argv); }
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