git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit3fb31b4b8aa56f184baaf6e066955619f055a5d4
parentc48d1f13db
authorLucas Galante <[email protected]>
date2026-06-29 20:17
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);
+    }
 }