From be5881115a854980efc5bac9b946fd9c5c3f3275 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 30 Aug 2022 21:54:39 -0700 Subject: [PATCH] test less cases of utf-8 validation, to avoid taking forever --- src/openpower/test/algorithms/svp64_utf_8_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/test/algorithms/svp64_utf_8_validation.py b/src/openpower/test/algorithms/svp64_utf_8_validation.py index f040f1e6..afcbde68 100644 --- a/src/openpower/test/algorithms/svp64_utf_8_validation.py +++ b/src/openpower/test/algorithms/svp64_utf_8_validation.py @@ -347,7 +347,7 @@ class SVP64UTF8ValidationTestCase(TestAccumulatorBase): # type: (bytes | str) -> None if isinstance(data, str): data = data.encode("utf-8") - data = b' ' * 8 + data + b' ' * 8 + data = data.center(8, b' ') for i in range(len(data)): self.run_case(data[i:], src_loc_at=1) self.run_case(data[:i], src_loc_at=1) -- 2.30.2