From 4a6e310110a51e060e968a44e81baa8b259d1239 Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Mon, 27 Jan 2025 11:01:54 +0800 Subject: [PATCH] refactor: update view pattern test syntax --- bytes/view_pattern_test.mbt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bytes/view_pattern_test.mbt b/bytes/view_pattern_test.mbt index fe5c67bd2..7941e0737 100644 --- a/bytes/view_pattern_test.mbt +++ b/bytes/view_pattern_test.mbt @@ -12,13 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. - test "View::pattern" { let view = b"\x01\x02\x03"[:] match view { - [0x01, 0x02, ..rest] => { - inspect!(rest, content="b\"\\x03\"") - } + [0x01, 0x02, .. rest] => inspect!(rest, content="b\"\\x03\"") _ => abort("should not happen") } }