//! `#[derive(ParamSummary)]` 기본 동작 검증. use cimery_macros::ParamSummary; #[derive(ParamSummary)] #[allow(dead_code)] struct GirderParams { pub total_height: f64, pub top_flange_width: f64, pub web_thickness: f64, } #[test] fn param_count_matches_field_count() { assert_eq!(GirderParams::PARAM_COUNT, 3); } #[test] fn param_names_in_declaration_order() { assert_eq!( GirderParams::PARAM_NAMES, &["total_height", "top_flange_width", "web_thickness"], ); } #[derive(ParamSummary)] #[allow(dead_code)] struct Empty {} #[test] fn empty_struct_handled() { assert_eq!(Empty::PARAM_COUNT, 0); assert_eq!(Empty::PARAM_NAMES, &[] as &[&str]); }