diff options
Diffstat (limited to 'xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp')
-rw-r--r-- | xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp b/xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp index a9698721b2..174673eb72 100644 --- a/xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp +++ b/xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp @@ -7,30 +7,17 @@ #include "../common/xfa_utils.h" TEST(XfaUtilsImp, XFA_MapRotation) { - struct TestCase { - int input; - int expected_output; - } TestCases[] = { - {-1000000, 80}, - {-361, 359}, - {-360, 0}, - {-359, 1}, - {-91, 269}, - {-90, 270}, - {-89, 271}, - {-1, 359}, - {0, 0}, - {1, 1}, - {89, 89}, - {90, 90}, - {91, 91}, - {359, 359}, - {360, 0}, - {361, 1}, - {100000, 280} - }; + struct TestCase { + int input; + int expected_output; + } TestCases[] = {{-1000000, 80}, {-361, 359}, {-360, 0}, {-359, 1}, + {-91, 269}, {-90, 270}, {-89, 271}, {-1, 359}, + {0, 0}, {1, 1}, {89, 89}, {90, 90}, + {91, 91}, {359, 359}, {360, 0}, {361, 1}, + {100000, 280}}; - for (size_t i = 0; i < FX_ArraySize(TestCases); ++i) { - EXPECT_EQ(TestCases[i].expected_output, XFA_MapRotation(TestCases[i].input)); - } + for (size_t i = 0; i < FX_ArraySize(TestCases); ++i) { + EXPECT_EQ(TestCases[i].expected_output, + XFA_MapRotation(TestCases[i].input)); + } } |