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-Tag: sv_maxu_works-initial X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9bed38ecbe247d6b5ff22a04fc95ac390d7c3ac;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)