summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
AgeCommit message (Collapse)Author
2024-04-13Better test runner (#3922)Laurenz
2024-04-02A few CI and crate config changes (#3852)Laurenz
2024-04-02Improve `repr` for `SequenceElem` (#3584)Malo
2024-04-01Fix `str.trim(regex,at:end)` when the whole string is matched (#3730)Leedehai
2024-04-01Implement `to-dict` method on arrays (#3575)frozolotl
2024-03-23Let `Repr` for `Relative<T>` print both abs + ratio (#3721)Leedehai
2024-03-09Remove floating point rounding from colors (and more) (#3557)frozolotl
2024-03-04Add `chunks` method to array (#3539)frozolotl
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-03-01Provide more fine-grained spans in raw blocks (#3257)Myriad-Dreamin
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-02-28Implement alpha modification methods for colors (#3516)frozolotl
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-02-28Externalize assets (#3515)Laurenz
2024-02-27Improve color negation (#3500)frozolotl
2024-02-27New context system (#3497)Laurenz
2024-02-25Fix cast order for `ToInt` (#3485)Laurenz
2024-02-21Wider callsite span (#3466)Laurenz
2024-02-21Destructuring improvements (#3463)Laurenz
2024-02-20Add module -> dictionary conversion (#3428)f3rn0s
Co-authored-by: f3rn0s <finn@volkis.com.au> Co-authored-by: Laurenz <laurmaedje@gmail.com> Co-authored-by: Ilia <43654815+istudyatuni@users.noreply.github.com>
2024-02-20Add alpha component to luma (#3438)frozolotl
2024-02-14Fix text show-set regression (#3410)Laurenz
2024-02-12Add color-managed CMYK to RGB conversion (#3288)Martin Haug
2024-02-11Better errors for array/dictionary method calls that return mutable (#3370)Leedehai
2024-02-05Delay errors for all show rules (#3323)Laurenz
2024-02-05Update dictionary.insert() doc and tests (#3343)Leedehai
2024-02-05Support text show rules that match their own output (#3327)Laurenz
2024-02-02Support for and/or selectors in show rules (#3326)Laurenz
2024-02-01Fix show-set semantics (#3311)Laurenz
2024-01-30Respect set rules in where selectors (#3290)Laurenz
2024-01-16Syntax error if function name is parenthesized (#3058)Heinenen
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-01-05Fix typos (#3126)emilylime
2024-01-03Added `to-absolute` method to length. (#3117)Sébastien d'Herbais de Thun
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-01-02Clarify the way to access functions from dictionaries (#3064)Leedehai
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-12-30Don't allow nested line comment inside block comment (#3048)Heinenen
2023-12-28Suggest accessing field if method doesn't exist (#2977)voidiz
2023-12-28Add a test to verify .with() applies to sinks (#3071)Leedehai
2023-12-18Fix unnamed sinks not capturing named args (#2984)PgBiel
2023-12-14Improve number display (#2936)Malo
2023-12-11Mention `str(<label>)` feature in documentation for `label` (#2906)Malo
2023-12-05Implement lexicographic array comparison (#2827)PgBiel
2023-11-29A little less route nestingLaurenz
2023-11-28Better error message for named instead of positional argumentLaurenz
2023-11-27Add test cases to verify lexer's identifier validation (#2773)Leedehai
2023-11-26Rework `Vt` into `Engine`Laurenz
- Moves as much data out of the `Vm` - Removes duplication with call_vm and call_vt flavours - Uses tracked chain instead of fixed int for determining max nesting depth - This means that nesting checks now generalizes to layout and realization, to detect crashing show rules and overly nested layouts
2023-11-24Fix `has` on non-inherent fields (#2745)frozolotl
2023-11-21Make `color.components`' alpha parameter named (#2734)frozolotl
2023-11-17Remove restrictions to chroma and improve clamping (#2690)frozolotl
This PR does a few small things: - Oklab's a*/b* and Oklch's chroma components can be as large as desired. - In PDF, when encoding Oklab, the range is widened from [-0.4,0.4] to [-0.5,0.5]. - In PDF, clamping is now performed on Oklch's chroma instead of a* and b*. This causes hue not to be distorted when clamping. SVG and PNG export remain unchanged: - SVG itself never had any restrictions on chroma. We directly use the `oklab` and `oklch` CSS colors, which should work fine for the most part. In the future, embedded ICC profiles might be nice. Further research is likely necessary. - While PNG does not support color spaces like Oklab or Oklch, certain useful features exist. One can define gamma (gAMA) and chromacities&whitepoint (cHRM) chunks and even embed ICC profiles. While `image` crate does not support these features for encoding, its backend crate `png` does support gAMA and cHRM. It does not allow embedding ICC profiles yet, though. As it stands, to fully support wide gamuts and more accurate colors, more work is necessary. This PR should help a bit though.
2023-11-13Make Oklab and Oklch chroma ratios relative to 0.4 (#2642)frozolotl
2023-11-13Add tests for shorthand (#2660)TheJosefOlsson
2023-11-10Implement Oklch support (#2611)frozolotl
2023-11-07Add hints for invalid identifier errors (#2583)tingerrr
2023-11-06Prevent silent swallowing of return expressions trailing arguments (#2545)Samuel Tardieu
Fixes #2104