From: Jacob Lifshay Date: Wed, 31 Aug 2022 04:54:39 +0000 (-0700) Subject: test less cases of utf-8 validation, to avoid taking forever X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be5881115a854980efc5bac9b946fd9c5c3f3275;p=openpower-isa.git test less cases of utf-8 validation, to avoid taking forever --- 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)