[yew-devel] [PATCH yew-widget-toolkit 0/4] update macro tests
Shannon Sterz
s.sterz at proxmox.com
Tue Jan 14 12:44:36 CET 2025
this adapts the macro tests to the changes in the macros crate so that
they work again. note that for the compile tests we eventually want to
use `ui_test` [1] to more flexibly handle things like updated compiler
versions in the compilation output. however, this is not packaged yet,
so just use the `TRYBUILD=overwrite` environment variable to generate
the output for the current compiler version. this only effects one test
(`invalid_type`) at the moment.
[1]: https://crates.io/crates/ui_test
Shannon Sterz (4):
macros: update compiler version in invalid_type test
macros: update no_clone test to adjust to new additional traits
macros: update wrong_comp test to adjust to new additional traits
macros: update dummy pwt implementations so that the doc tests succeed
pwt-macros/src/lib.rs | 49 +++++++++++++++++++-
pwt-macros/tests/builder/invalid_type.stderr | 2 +-
pwt-macros/tests/widget/no_clone.rs | 13 ++++++
pwt-macros/tests/widget/no_clone.stderr | 8 ++--
pwt-macros/tests/widget/wrong_comp.rs | 21 ++++++++-
pwt-macros/tests/widget/wrong_comp.stderr | 4 +-
6 files changed, 87 insertions(+), 10 deletions(-)
--
2.39.5
More information about the yew-devel
mailing list