From: Andrew Morton Date: Wed, 2 Jun 2021 03:53:13 +0000 (+1000) Subject: lib-math-rational-add-kunit-test-cases-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=076512dda20a0c70096570c79a8d301bace925b3;p=users%2Fjedix%2Flinux-maple.git lib-math-rational-add-kunit-test-cases-fix remove non-ascii characters, fix whitespace Cc: Andy Shevchenko Cc: Daniel Latypov Cc: Oskar Schirmer Cc: Trent Piepho Cc: Yiyuan Guo Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/lib/math/rational-test.c b/lib/math/rational-test.c index f64166dbe9eaf..df6ab5f43e8c3 100644 --- a/lib/math/rational-test.c +++ b/lib/math/rational-test.c @@ -13,8 +13,8 @@ struct rational_test_param { }; static const struct rational_test_param test_parameters[] = { - { 1230, 10, 100, 20, 100, 1, "Exceeds bounds, semi-convergent term > ½ last term" }, - { 34567,100, 120, 20, 120, 1, "Exceeds bounds, semi-convergent term < ½ last term" }, + { 1230, 10, 100, 20, 100, 1, "Exceeds bounds, semi-convergent term > 1/2 last term" }, + { 34567,100, 120, 20, 120, 1, "Exceeds bounds, semi-convergent term < 1/2 last term" }, { 1, 30, 100, 10, 0, 1, "Closest to zero" }, { 1, 19, 100, 10, 1, 10, "Closest to smallest non-zero" }, { 27,32, 16, 16, 11, 13, "Use convergent" }, @@ -42,13 +42,13 @@ static void rational_test(struct kunit *test) } static struct kunit_case rational_test_cases[] = { - KUNIT_CASE_PARAM(rational_test, rational_gen_params), - {} + KUNIT_CASE_PARAM(rational_test, rational_gen_params), + {} }; static struct kunit_suite rational_test_suite = { - .name = "rational", - .test_cases = rational_test_cases, + .name = "rational", + .test_cases = rational_test_cases, }; kunit_test_suites(&rational_test_suite);