indi 5.1.1

Client library for interfacing with the Instrument Neutral Distributed Interface (INDI) protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(test)]
mod tests {
    use crate::serialization::DelProperty;

    #[test]
    fn test_get_properties() {
        let xml = r#"
    <delProperty device="Telescope Simulator" name="foothing"/>
                    "#;
        let param: DelProperty = quick_xml::de::from_str(xml).unwrap();

        assert_eq!(param.device, String::from("Telescope Simulator"));
        assert_eq!(param.name, Some(String::from("foothing")));
    }
}