Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions test/value_representation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,23 @@ TEST_P(CheckValidRepresentationOfFloatx4_8, regular)
}

// SUBSET TEST ON FLOATX TYPE HALF <5,10>
INSTANTIATE_TEST_CASE_P(TestParams_full_subnormal_range,
CheckValidRepresentationOfFloatx5_10,
testing::Values(::testing::make_tuple(5, 10)));
INSTANTIATE_TEST_SUITE_P(TestParams_full_subnormal_range,
CheckValidRepresentationOfFloatx5_10,
testing::Values(::testing::make_tuple(5, 10)));

INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
TestParams_subset_subnormal_range, CheckValidRepresentationOfFloatx5_10,
testing::Values(::testing::make_tuple(2, 3), ::testing::make_tuple(3, 4),
::testing::make_tuple(4, 2), ::testing::make_tuple(4, 8),
::testing::make_tuple(5, 8), ::testing::make_tuple(2, 10)));

// SUBSET TEST ON FLOATX TYPE HALF <4,8>
INSTANTIATE_TEST_CASE_P(TestParams_full_subnormal_range,
CheckValidRepresentationOfFloatx4_8,
testing::Values(::testing::make_tuple(4, 8)));

INSTANTIATE_TEST_CASE_P(TestParams_subset_subnormal_range,
CheckValidRepresentationOfFloatx4_8,
testing::Values(::testing::make_tuple(2, 3),
::testing::make_tuple(3, 8),
::testing::make_tuple(4, 3)));
INSTANTIATE_TEST_SUITE_P(TestParams_full_subnormal_range,
CheckValidRepresentationOfFloatx4_8,
testing::Values(::testing::make_tuple(4, 8)));

INSTANTIATE_TEST_SUITE_P(TestParams_subset_subnormal_range,
CheckValidRepresentationOfFloatx4_8,
testing::Values(::testing::make_tuple(2, 3),
::testing::make_tuple(3, 8),
::testing::make_tuple(4, 3)));
19 changes: 8 additions & 11 deletions test/value_representation_half.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ TEST_P(MyTest, TestFormula)
// ASSERT_EQ(recoverd_fx, expected); // does not work for NAN's.
}

INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
TestWithParameters_manual_sampels, MyTest,
testing::Values(

Expand Down Expand Up @@ -99,8 +99,7 @@ INSTANTIATE_TEST_CASE_P(
// 0000000000000000000000000000000000000000000000000000000000000000
::testing::make_tuple(0x3e5999999999999a, 0x0000000000000000)));


INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
// Cases showing failuers during a float - Half - float brute force test!
TestWithParameters_manual_sampels_002, MyTest,
testing::Values(
Expand Down Expand Up @@ -135,8 +134,7 @@ INSTANTIATE_TEST_CASE_P(
// 1011111001110000000000000000000000000000000000000000000000000000
::testing::make_tuple(0xbe6005ec80000000, 0xbe70000000000000)));


INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
TestWithParametersC1, MyTest,
testing::Values(
// number: 1.00000000000000000000e+00 0x3ff0000000000000
Expand Down Expand Up @@ -186,7 +184,7 @@ INSTANTIATE_TEST_CASE_P(
::testing::make_tuple(0x3fbc71c71c71c71c, 0x3fbc700000000000)));

// Brute force snippsets from extracted from softlow
INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
TestWithParameters_BF_001, MyTest,
testing::Values(
// start: 0
Expand Down Expand Up @@ -243,7 +241,7 @@ INSTANTIATE_TEST_CASE_P(
::testing::make_tuple(0x36f8000000000000, 0x0000000000000000),
::testing::make_tuple(0x36f8800000000000, 0x0000000000000000)));

INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
TestWithParameters_BF_002, MyTest,
testing::Values(
// start: 97495757619
Expand Down Expand Up @@ -300,7 +298,7 @@ INSTANTIATE_TEST_CASE_P(
::testing::make_tuple(0xbe66666c60000000, 0xbe70000000000000),
::testing::make_tuple(0xbe66666c80000000, 0xbe70000000000000)));

INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
TestWithParameters_BF_003, MyTest,
testing::Values(
// start: 214318868070
Expand Down Expand Up @@ -357,7 +355,7 @@ INSTANTIATE_TEST_CASE_P(
::testing::make_tuple(0xc4ccccd2c0000000, 0xfff0000000000000),
::testing::make_tuple(0xc4ccccd2e0000000, 0xfff0000000000000)));

INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
TestWithParameters_BF_004, MyTest,
testing::Values(
// start: 429492434632
Expand Down Expand Up @@ -414,8 +412,7 @@ INSTANTIATE_TEST_CASE_P(
::testing::make_tuple(0xffffcedf00000000, 0xffffcc0000000000),
::testing::make_tuple(0xffffcedf20000000, 0xffffcc0000000000)));


INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
TestWithParameters_BF_005, MyTest,
testing::Values(
// start: 97495757619
Expand Down
2 changes: 1 addition & 1 deletion third_party/gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

load_git_package(gtest
"https://github.com/google/googletest.git"
"master")
"main")