aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx_vector.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx_vector.rs')
-rw-r--r--tests/cxx_vector.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/cxx_vector.rs b/tests/cxx_vector.rs
new file mode 100644
index 00000000..a8da32c9
--- /dev/null
+++ b/tests/cxx_vector.rs
@@ -0,0 +1,9 @@
+use cxx::{CxxVector};
+use std::fmt::Write as _;
+
+#[test]
+fn test_cxx_vector_new() {
+ let vector = CxxVector::<i32>::new();
+ assert!(vector.is_empty());
+}
+