diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-08-04 15:09:01 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-08-04 15:46:46 +0200 |
| commit | b8b0137504d388efbe2d1ba5082c0dcabcd8bc8a (patch) | |
| tree | 825abab07230c702bca8efee026d9b98ecfa2aae /tests/typ/compute/calc.typ | |
| parent | 028d2f53085022c39945b1a99c9dc78eb8069d4a (diff) | |
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
Diffstat (limited to 'tests/typ/compute/calc.typ')
| -rw-r--r-- | tests/typ/compute/calc.typ | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index cd97dfab..bdaf28a7 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -18,11 +18,11 @@ #test(calc.round(calc.pi, digits: 2), 3.14) --- -// Error: 6-10 expected boolean, integer, float, or string, found length +// Error: 6-10 expected boolean, float, string, or integer, found length #int(10pt) --- -// Error: 8-13 expected boolean, integer, float, ratio, or string, found function +// Error: 8-13 expected boolean, integer, ratio, string, or float, found function #float(float) --- |
