test: Added integration tests for the ValidateTheme macro

This commit is contained in:
Dark-Alex-17 committed 2025-03-06 16:00:50 -07:00
1 parent b012fc29e4
commit 709f6ca6ca
7 files changed
+112 -12

No files matched your search

@@ -0,0 +1,15 @@
use enum_display_style_derive::EnumDisplayStyle;
use pretty_assertions::assert_str_eq;
#[test]
fn test_derive_enum_display_style() {
assert_str_eq!(TestEnum::Test.to_display_str(), "Testing 123");
assert_str_eq!(TestEnum::Ignored.to_display_str(), "Ignored");
}
#[derive(EnumDisplayStyle)]
enum TestEnum {
#[display_style(name = "Testing 123")]
Test,
Ignored,
}