GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
Add unit test for spinbox_button_padding config parsing
src/layout.rs | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/layout.rs b/src/layout.rs
index 1678787..65d6434 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -4871,5 +4871,12 @@ mod tests {
assert_eq!(height_col_1_after, height_col_1_before);
assert_ne!(height_col_0_after, height_col_1_after);
}
+
+ #[test]
+ fn test_spinbox_button_padding_config() {
+ let padding = spinbox_button_padding();
+ println!("Parsed spinbox button padding: {}", padding);
+ assert_eq!(padding, 2.0);
+ }
}