summaryrefslogtreecommitdiff
path: root/tests/test_struct.rs
diff options
context:
space:
mode:
authorChristopher Chambers <chris.chambers@peanutcode.com>2014-12-31 10:57:40 -0600
committerChristopher Chambers <chris.chambers@peanutcode.com>2014-12-31 10:57:40 -0600
commit7fd76345505adde2eee8d63a92190f38d2a7c792 (patch)
tree017e0890b70fecb19d58db991abf0e794c15ea61 /tests/test_struct.rs
parentfffb60bff6daebe2146458c36c85d5e3deedf835 (diff)
Fixes a struct test that was previously incorrect.
test_struct::containing_fwd_decl_struct previously had incorrect quoted output in the test. bindgen was generating code correctly. Now the test is corrected and passes.
Diffstat (limited to 'tests/test_struct.rs')
-rw-r--r--tests/test_struct.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_struct.rs b/tests/test_struct.rs
index d3c52aef..2d30174c 100644
--- a/tests/test_struct.rs
+++ b/tests/test_struct.rs
@@ -101,7 +101,7 @@ fn with_nesting() {
}
#[test]
-fn with_contain_fwd_decl_struct() {
+fn containing_fwd_decl_struct() {
assert_bind_eq!("headers/struct_containing_forward_declared_struct.h", cx,
quote_item!(cx,
#[repr(C)]
@@ -113,7 +113,9 @@ fn with_contain_fwd_decl_struct() {
quote_item!(cx,
#[repr(C)]
#[deriving(Copy)]
- pub struct Struct_b;
+ pub struct Struct_b {
+ pub val_b: ::libc::c_int,
+ }
));
}