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 5b10d1b commit 06b2bebCopy full SHA for 06b2beb
src/types.rs
@@ -23,4 +23,19 @@ impl fmt::Debug for c_void {
23
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
24
f.pad("c_void")
25
}
26
+}
27
+
28
+#[cfg(test)]
29
+mod tests {
30
+ use std::os::raw;
31
+ use std::any::TypeId;
32
+ use types;
33
34
+ #[test]
35
+ fn verify_types() {
36
+ assert_eq!(TypeId::of::<types::c_int>(), TypeId::of::<raw::c_int>());
37
+ assert_eq!(TypeId::of::<types::c_uchar>(), TypeId::of::<raw::c_uchar>());
38
+ assert_eq!(TypeId::of::<types::c_uint>(), TypeId::of::<raw::c_uint>());
39
+ assert_eq!(TypeId::of::<types::c_char>(), TypeId::of::<raw::c_char>());
40
+ }
41
0 commit comments