We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7142f88 commit 1efff4eCopy full SHA for 1efff4e
glib/src/param_spec.rs
@@ -2025,4 +2025,20 @@ mod tests {
2025
assert_eq!(pspec.minimum(), -2);
2026
assert_eq!(pspec.flags(), ParamFlags::READWRITE);
2027
}
2028
+
2029
+ #[test]
2030
+ fn test_has_param_spec() {
2031
+ let pspec = <i32 as HasParamSpec>::param_spec_builder()("name")
2032
+ .blurb("Simple int parameter")
2033
+ .minimum(-2)
2034
+ .explicit_notify()
2035
+ .build();
2036
2037
+ assert_eq!(pspec.name(), "name");
2038
+ assert_eq!(pspec.blurb(), Some("Simple int parameter"));
2039
+ assert_eq!(
2040
+ pspec.flags(),
2041
+ ParamFlags::READWRITE
2042
+ );
2043
+ }
2044
0 commit comments