]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
lib-math-rational-add-kunit-test-cases-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 2 Jun 2021 03:53:13 +0000 (13:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 2 Jun 2021 03:53:13 +0000 (13:53 +1000)
remove non-ascii characters, fix whitespace

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Daniel Latypov <dlatypov@google.com>
Cc: Oskar Schirmer <oskar@scara.com>
Cc: Trent Piepho <tpiepho@gmail.com>
Cc: Yiyuan Guo <yguoaz@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
lib/math/rational-test.c

index f64166dbe9eaf00eb05ba3eb643b4bb2ee259cd3..df6ab5f43e8c342a1939e2b9fdcfc725ad161c65 100644 (file)
@@ -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);