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/compute/construct.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/typ/compute/construct.typ') diff --git a/tests/typ/compute/construct.typ b/tests/typ/compute/construct.typ index ddd4c591..ea9d2816 100644 --- a/tests/typ/compute/construct.typ +++ b/tests/typ/compute/construct.typ @@ -103,7 +103,7 @@ #test(str(10 / 3).len() > 10, true) --- -// Error: 6-8 expected integer, float, label, or string, found content +// Error: 6-8 expected integer, float, label, bytes, or string, found content #str([]) --- -- cgit v1.2.3