From b8b0137504d388efbe2d1ba5082c0dcabcd8bc8a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 4 Aug 2023 15:09:01 +0200 Subject: Bytes type - Moves `Bytes` from `util` to `eval` module - Accepts bytes in `str` function for bytes -> str conversion - Adds `bytes` function for str | array -> bytes conversion - Adds `array` function for bytes -> array conversion - Adds `len`, `at`, and `slice` methods for bytes - Adds `encoding` parameter to `read` function --- tests/typ/compiler/string.typ | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/typ/compiler/string.typ') diff --git a/tests/typ/compiler/string.typ b/tests/typ/compiler/string.typ index c4c1669e..4241361a 100644 --- a/tests/typ/compiler/string.typ +++ b/tests/typ/compiler/string.typ @@ -41,8 +41,7 @@ #"Hello".at(5) --- -// Error: 25-32 expected string, found dictionary -#"Hello".at(5, default: (a: 10)) +#test("Hello".at(5, default: (a: 10)), (a: 10)) --- // Test the `slice` method. -- cgit v1.2.3